News for hackers. Stuff that matters.
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