• john_lemmy@slrpnk.net
    link
    fedilink
    arrow-up
    8
    ·
    11 hours ago

    I … this seems like a std library made to troll you. Is there a (good) reason it is like that?

    • brian@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      4 hours ago

      early js/html liked to do something in all cases instead of throwing or whatever. I think it’s mostly just a collection of them trying to do something smart on nonsense input and not being consistent about it.

      side note, I’m so excited for Temporal, some browsers already support it and you can polyfill for the rest.

    • Kevin@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      5 hours ago

      I can only imagine it wasn’t planned properly, cuz that’s so many quiet behaviours without good parsing errors