• toastal
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    3 months ago

    I’m already annoyed by the end of public static final string that the variable name doesn’t even bother me in these sorts of langauages. All things should be public, static, & final, by default so they aren’t necessary to write. You should only have to write what unsafeties you are opting into.

    • warlaan@lemm.ee
      link
      fedilink
      arrow-up
      4
      ·
      3 months ago

      You may enjoy having a look at F#. It says that it’s “functional first”, but I think a better description would be “an opinionated version of C#”.

      For example it doesn’t have a “const”-keyword. Instead it has a “mutable”-keyword, because everything is const by default.

      • toastal
        link
        fedilink
        arrow-up
        1
        ·
        3 months ago

        Being attached to the CLR isn’t my cup of tea, but I have been learning its older cousin OCaml off & on the last 1½ years