Re:“Node.js is one of the worst things to happen to the soft...
by Ar-Curunir on Tuesday August 23, 2016 @12:21PM
(#12344937)
The python example is not an issue; you're going from string to a longer string, not to an integer.
[ Parent
| on HN ]
Re:“Node.js is one of the worst things to happen to the soft...
by oliverkyss on Tuesday August 23, 2016 @01:48PM
(#12345741)
That's not true, you're going from string _and_ an integer, because '*' is a binary operator. (And it isn't communicative as shown here, which is another 'problem')
But that's not really the point, crdoconnor seems to think that languages should throw an error in cases like this, not just keep the type of the first argument.