Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
gravypod
· 10y ago · 0 comments
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?
Comments
[–]
devishard
10y ago
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.