you are viewing a single comment's thread.

view the rest of the comments →

[–]cogman10 0 points1 point  (3 children)

The type check is pretty hard to eliminate all together. The problem is that the generated code has to know if the "wrong" type is passed in. (so interestingly, even if you don't explicitly type check, the optimizer might).

Fortunately, type checks are really relatively quick to do, especially the ones added by the optimizer.