I know JavaScript is a very special boi but c’mon, you’re embarrassing me in front of the wizards.

  • BatmanAoD@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    9 days ago

    Yes. Types are good. Numeric operations have specific hardware behavior that depends on whether you’re using floating-point or not. Having exclusively floating-point semantics is wildly wrong for a programming language.

    • arty@feddit.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 days ago

      Types are good

      Opinions vary on this topic, apparently. There’s a proliferation of untyped languages.

      • BatmanAoD@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        9 days ago

        There’s a proliferation of dynamically and/or softly typed languages. There are very few, if any, truly untyped languages. (POSIX shells come close, though internally they have at least two types, strings and string-arrays, even if the array type isn’t directly usable without non-POSIX features.)

        • FizzyOrange@programming.dev
          link
          fedilink
          arrow-up
          0
          ·
          8 days ago

          TCL & CMake are fully stringly typed. Both pretty terrible languages (though TCL can at least claim to be a clever hack that was taken far too seriously).