filbert
filbert copied to clipboard
Strings and numbers shouldn't be addable
Currently, adding a string to a number (in either order) casts the number to a string and concatenates:
"abc" + 123 == "abc123"
123 + "abc" == "123abc"
Both should throw a TypeError
.
On a related note, sum()
shouldn't work on lists of strings. Currently, sum(["a", "b", "c"])
produces "0abc"
.