4 ms·
Often? what language does '12 + "34a" gives 46'? Not even perl does that.
Often? what language does '12 + "34a" gives 46'? Not even perl does that.
PHP does, I just checked.
So rarely instead of often. I would not judge all dynamic languages on what PHP does.
using PHP in a discussion about types evokes Godwin.
I'm sure incrementing strings seemed like a good idea at the time...
> Not even perl does that.
Are you sure?
perl -e 'print "12" + "34a","\n"'