Hacker News new | ask | show | jobs
by kevingadd 4713 days ago
Adding an implicit coercion to number to a tuple type that contains multiple elements in a dynamically typed language is just a bad idea. Period.
1 comments

Okay, that isn't integral though. This could easily be left out if desired. It's not coercing to a number either, it's simply concatenating. This would work with strings too or any other type that supports valueOf.

You have valid points though. I just didn't like to think of this as something that could never be used in the real world. Or at least contain little ideas that could be used in the real world. It has at least some relevance.