| ▲ | Shocka1 4 days ago | |
Piggybacking off your comment, I just completed a detailed research paper where I compared Haskell to C# with an automated trading strategy. I have many years of OOP and automated trading experience, but struggled a bit at first implementing in Haskell syntax. I attempted to stay away from LLMs, but ended up using them here and there to get the syntax right. Haskell is actually a pretty fun language, although it doesn't fly off my fingers like C# or C++ does. I think a really great example of the differences is displayed in the recursive Fibonacci sequence. In C#:
In Haskell:
As you might know, this isn't even scratching the surface of the Haskell language, but it does a good job highlighting the syntax differences. | ||
| ▲ | mrsmrtss 3 days ago | parent [-] | |
When using switch expression in C#, they are a lot more similar: | ||