Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jowiar
· 12y ago · 0 comments
When I read code like this and find that half of the tests are, more or less, a typechecker, it reduces to an argument for static typing.
Comments
[–]
voxtex
12y ago
Completely agree with you. Many of the tests don't do any kind of assertion, simply ensure that an exception isn't thrown on the invocation of a method. An interface defined in a static language would render the majority of these tests unnecessary.
[–]
joncooper
12y ago
Indeed. Once you realize this it doesn't take very long to get excited about statically typed languages, especially with type inference.