I’m trying to understand the differences between C# and F#. To me, C# and VB are pretty much the same thing and I’m happy to use one or the other and I’ve dabbled with C++ to understand why to use it, however F# remains a mystery to me.
Now, I know F# is used for functional programming (or so I’ve read) but the details I’ve found are not conclusive as to why I would want to use it over another language. There are many similar questions already here but a lot of the answers suggest they are also in-fact very similar.
Can any one give a simple example of 2 real life situations where it would be preferable to use one language over the other (assuming there are any)? Or do we feel that it could be down to preference?
See here, although the question has been closed, this response gives a good overview of when you’d use a functional language like F# over an imperative language.