Re:Do We Create Type Systems In Dynamic Languages?
by Confusion on Monday April 06, 2009 @03:01PM
(#549368)
Functions only work for a very specific set of input types. On all other inputs, something goes wrong, but that 'something' can take quite a bit of investigating to figure out. Therefore, an assertion that verifies that the input is indeed part of that specific set of input types is valuable: it catches the problem at the earliest possible moment and it pinpoints the exact problem.
[ Parent
| on HN ]