Y
Hacker News
new
|
ask
|
show
|
jobs
by
macspoofing
3185 days ago
>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'.
1 comments
discreteevent
3185 days ago
And it takes less typing (keyboard) than the assert, and you get free documentation inline with the code!
link