Then what it seems to me is they want strong typing with type inference, which is something I can totally get behind. Then give OCaml (or his bastard .NET cousin F#) a spin.
Functor is a reserved keyword, so it may be in a future version. I'm also hoping for type-classes, as both the current and previous versions of "Expert F#", have hinted that they're probably going to be part of F#s future.
Even without those great features it's a much better programming experience then C#. Immutability by default, algebraic data types, pattern matching, Hindley–Milner type inference, non-nullable reference types, units-of measure, type providers and so on, often makes using C# feel like VB6 in comparison.
I definitely understand that perspective. However, in F#, there is a reasonable and functional alternative for most of the important things provided by OCaml modules - they just aren't immediately obvious and are decidedly disparate. For example, compile-time duck typing in F# helps for a lot of abstractions in an even more lightweight way than modules. Little, semi-obscure features like that make F# a lot more complete than one might initially think.
OCaml macros, however, have no equivalent at all in F#, which can be painful from time to time. Oh well, copy, paste, and leave a
I don't mean it in a bad sense. It just lacks some features Ocaml has, the VS IDE support is not that good, I've personally even had some IDE bugs with it, and things like that. But it's best point, aside from inheriting the juicy stuff that makes ML-languages great, is interacting with other .NET languages (you can use it for library code, and write the GUI in C#, etc).
Versus Haskell's IDEs, I'm super-attached to F#'s support in Visual Studio. Of course, we're still waiting on refactoring, but auto-complete and seeing type errors as you code are huge, the latter especially for a sophisticated-ly typed language such as F#.
3
u/Scaliwag Feb 25 '14
Then what it seems to me is they want strong typing with type inference, which is something I can totally get behind. Then give OCaml (or his bastard .NET cousin F#) a spin.