Re:“Node.js is one of the worst things to happen to the soft...
by gravypod on Tuesday August 23, 2016 @10:34AM
(#12344028)
So I can either throw an exception and take a speed hit in my performance critical code or I can remove a possible value from my map?
[ Parent
| on HN ]
Re:“Node.js is one of the worst things to happen to the soft...
by devishard on Tuesday August 23, 2016 @10:47AM
(#12344125)
It's not "removing a possible value from your map", it's having your type system explicitly check that you're handling the edge case at compile time. This works in practice in a wide variety of languages.