• ThirdConsul@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    13 hours ago

    Out of curiosity, could you give me an example? I usually think the opposite whenever I interact with other languages?

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 hours ago

      Well, on the JVM side of things there’s Scala and Kotlin. Scala supports all the object-oriented paradigms + the functional paradigms. Kotlin supports about the same number of features as Scala, although it puts more restrictions on them. On the Microsoft side of things, I’ve never tried it, but I’m guessing F# has to cover a similar object-oriented + functional feature set. Well, and from what I’ve heard about C++, it’s presumably the language with the most features across all languages.

      • ThirdConsul@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        2 hours ago

        C# covers all feature of functional programming that comes to mind from Go (edit: not Go, what was it, Haskell?).

        Traits? Done. Monads? Done. Functions as params? Sure. Closures, errors as values, whatever you want.

        What are the specific language features you’re looking for or think are missing in C#?