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

    Ah, folly of untyped systems. Tbh this behaviour makes sense given the rules implemented within the language. Anything passed to parseInt is casted to string and then parsed.

    Is it shitty behaviour - yes. Does it make sense in given the language implementation - yes.

    • LarsIsCool@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      24 minutes ago

      With this reasoning, would you say everything that a computer does makes sense, because it always follows the implementation? Or am I missing something?