News for hackers. Stuff that matters.
Re:F# is the best coding language today by MangoCoffee on Friday July 09, 2021 @11:27AM (#27784668)
> C# is picking up a lot of small things that make it incrementally better than it was before

agree. C# is kind of morphing into F# with new features like record.

Re:F# is the best coding language today by corysama on Friday July 09, 2021 @11:41AM (#27784835)
C# is Microsoft Research’s multi-decade play to convince Java programmers to become Ocaml programmers so slowly that they don’t notice.
Re:F# is the best coding language today by pjmlp on Friday July 09, 2021 @12:21PM (#27785332)
Given that Java was Sun's attempt to bring C++ developers half way to Lisp, and C# was born out of a lawsuit due to stuff like adding Forms, COM, events and P/Invoke to Java, maybe not.
Re:F# is the best coding language today by ddek on Saturday July 10, 2021 @08:06AM (#27792811)
I see this take a lot, and vehemently disagree.

An OO language with record types and pattern matching expressions, plus a vague hint of union types in the future; is not a functional language. Depending on who you ask, it's either a quasi-functional OO language or a bloated OO language. I used to be in the first camp, now I lean towards the latter.

Over time, projects morph into the average of their framework. If you started off badly, if it survives long enough eventually someone will refactor it into something acceptable. If you start off using FP features, eventually they will be eroded away; through friction with external dependencies, or later developers being less invested in the paradigm. In both cases you're usually left with an inconsistent codebase.

When people say that C# is morphing into F#, my usual thought is 'have you ever seen an FP project?' Take some time and read some FP codebases, and compare them with a typical C# codebase.

(side-note: one of the most widely used FP language for web development is elixir. There are a few good open-source elixir projects you can read to get a feel for the structure. Almost all elixir projects follow the same structure, and it's about as anti OO/SOLID as possible, yet still conforming to a vague onion architecture.)

Re:F# is the best coding language today by xupybd on Friday July 09, 2021 @09:35PM (#27790368)
C# is OO by default, F# is functional by default. Both support either but it's easier to use the tool dedicated to the style you want to program in.
Re:F# is the best coding language today by the_only_law on Friday July 09, 2021 @11:53AM (#27784995)
I can’t remember if it was a joke or serious, but I recall some comment on HN a while back trying to explain why Java was an ML.
Re:F# is the best coding language today by Zababa on Friday July 09, 2021 @12:22PM (#27785350)
Is it this one? https://news.ycombinator.com/item?id=26366665 The comment itself makes sense, though I don't know how is the adoption of new features in the ecosystem.