3 ms·
I think it's syntax. C# was painstakingly designed to be palatable by large hoards of programmers, most of which used C++ and Java at the time. With stuff like
by skrebbel 10y ago
I think it's syntax.
C# was painstakingly designed to be palatable by large hoards of programmers, most of which used C++ and Java at the time. With stuff like out and ref parameters, the unsafe keyword, a C++-like class syntax (even with things that look like destructors), it was obviously an important goal to appeal to C++ programmers more than Java could.
F#, on the other hand, doesn't look familiar at all to anybody but experienced functional programmers. This matters, because as a language you don't get a lot of time to seduce programmers. Most of us use the first code snippet we see as a way to determine whether to keep reading or close the tab.
That, or the language really needs to offer something special to keep us reading. PHP's advantage was "just upload some files over FTP and it works, no need to learn that complicated unixy cgi-bin stuff". Elixir/Erlang/go have "super high concurrency without the headaches". None of F#'s many cool features have the same "ok, now you got my attention, I need this, now" aspect.
These days there's a wider variety of syntaxes that a common. Ruby, JavaScript and Python became popular, also more popular than they were when F# first appeared. I suspect the syntax will feel less strange to many people. Maybe things are going to change.