5 ms·
Why would you need Scala on .NET when you have F# and C# that are completely the same thing.
by romanovcode 13y ago
Why would you need Scala on .NET when you have F# and C# that are completely the same thing.
- pkolaczk 13y agoScala integrates OOP and FP in a truly elegant way, F# is mostly FP with some OO bolted on it as an afterthought, and C# is much closer to Java than to Scala. You may argue whether Scala is really more expressive than F# (IMHO it is), but regardless of it, they are not the same thing.
- profquail 13y agoF# doesn't have "OO bolted on it as an afterthought". Sure, F# strongly favors the FP approach to things, but the language's OO features are important -- critical, even. Without support for OO programming, F# wouldn't be able to easily consume existing .NET (C#, VB.NET, etc.) libraries, nor would you be able to use F# to implement components/libraries to be easy consumed by C#. The ease of interop'ing with C# is one of F#'s best features, IMO, and an important part of the wider adoption it's now seeing.
- dragonwriter 13y agoNeither F# nor C# are "completely the same thing" as Scala.