Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
macspoofing
8y ago
0 comments
Share
>putting in one more assert for predictable exceptional input (wrong type) doesn't really add a noticeable amount of overhead
Yes. We call that 'typing'.
0 comments
default
newest
oldest
discreteevent
8y ago
And it takes less typing (keyboard) than the assert, and you get free documentation inline with the code!
j
/
k
navigate · click thread line to collapse