you are viewing a single comment's thread
view the rest of the comments
[–] 52 points 2 years ago (7 children)

Sure. But in a sane language doing something totally nonsensical like that is an error, and in a statically typed language it’s a compiler error. It doesn’t just silently do weird shit.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 1 point 2 years ago (3 children)

    What's a sane, dynamically typed language?

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 2 years ago

    I was trying to make a point without starting a flamewar that was beside the point. Personally I’d never choose a dynamically typed language for a production system. That being said, Python and Ruby complain if you try to add an array, dict/hashmap, string, or number to another (of a different type) so they’re certainly more sane than JavaScript.

  • source
  • parent