News for hackers. Stuff that matters.
Re:What's New in F# 9 by jayd16 on Sunday November 10, 2024 @11:05PM (#42104522)
Its very much a culture thing and not a language thing. C# is very versatile. Go look at Unity code and its a fairly different style. It has its own quirks and there's no such as "the right way" but it doesn't feel like Spring.

Also, extension methods are great. LINQ is amazing and that's partly from extension methods.

Re:What's New in F# 9 by mhh__ on Monday November 11, 2024 @09:40AM (#42107448)
Right, but extension methods are a hack to cover up problems with OOP
Re:What's New in F# 9 by CharlieDigital on Monday November 11, 2024 @11:59AM (#42108582)
"cover up" feels like the wrong sentiment here.

It's adding optionality and in fact, doesn't in any way break OOP at all; it is syntactic sugar.

Re:What's New in F# 9 by jayd16 on Monday November 11, 2024 @11:13AM (#42108193)
It's just sugar to turn functional style into .Syntax(), but because of that the tooling is very nice and things like LINQ can be a fluent API instead of LISP.

You can call it a hack but IMO you get the best of both worlds.

Re:What's New in F# 9 by mhh__ on Monday November 11, 2024 @05:58PM (#42111200)
Don't get me started on fluent apis lol