Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
macspoofing
8y ago
0 comments
Save
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
1 comments · 1 top-level
top
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