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
[ Parent
| on HN ]
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.
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.