News for hackers. Stuff that matters.
Re:Pure Bash Bible by ofrzeta on Thursday September 19, 2019 @02:44PM (#21019244)
That's an argument for types. While it's more convenient to use a language without types it's more error prone. So I guess in the end strong typing wins.

  >>> 0 + 42
  42
  >>> "0" + "42"
  '042'
  >>> "0" + 42
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
  TypeError: cannot concatenate 'str' and 'int' objects
  >>> int("0") + 42
  42

There are no comments on this comment yet.