• toastal@lemmy.ml
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    8 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
      ·
      8 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.