Re:C# 7 Work List of Features
by M8 on Thursday April 23, 2015 @08:43AM
(#9426269)
Don't forget that F# was mostly "forked" from OCAML, while C# was mostly "forked" from Java. So yes, F# got some OCAML features, but it got the weird ML syntax as well.
[ Parent
| on HN ]
Not only syntax, a lot of the restrictions feel weird for a Java/C#/Scala programmer as well. E.g. functions needing to be declared before you can use them feels like you are coding in C again.
F# probably is a better functional-with-OO-aspects language, but C#/Scala are clearly better OO-with-functional-aspects languages and programmers currently want the latter.
Re:C# 7 Work List of Features
by chadzawistowski on Friday April 24, 2015 @10:59PM
(#9437004)
I'd argue that restriction of F#'s is actually a feature. Cyclic dependencies are a real beast to reason about, and I like that F#'s lexical scoping means I need to opt-in to mutually recursive functions with `let rec`.
You're probably right that it feels unfamiliar to Java/C#/Scala programmers, but I enjoy the sense of security that F# and other restricting languages provide.
Re:C# 7 Work List of Features
by stonemetal on Thursday April 23, 2015 @01:00PM
(#9428124)
It started with "weird ML syntax" but they developed a new syntax and migrated to it. It hasn't used the original syntax for a while now.