News for hackers. Stuff that matters.
Re:Range-Checks and Recklessness by TheLoneWolfling on Sunday March 23, 2014 @09:10PM (#7456094)
Simple answer:

Leave in all range checks. If the compiler can determine that the range check will never be hit, or can partially optimize it (hoisting it out of a loop, etc) great. Otherwise? It gets checked at runtime, which is typically not that expensive an operation anyways.

There are no comments on this comment yet.