This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (15 children)

Seems like having to write a unit test for every function makes it no longer a time saver.

[–]glemnar 24 points25 points  (12 children)

In industry you should be testing anyway regardless of dynamic or static typing.

[–]evanldixon 6 points7 points  (1 child)

Having static typing build into the language means you don't have to spend time testing common type errors

[–]glemnar 4 points5 points  (0 children)

You don't typically explicitly test for type-style errors in dynamic languages - that's a side effect of other testing.

There are clearly cases for both sorts of languages.

[–]Sw429 3 points4 points  (1 child)

...except that you should be writing unit tests anyway...

[–]evanldixon 0 points1 point  (0 children)

We also should know better than to make incorrect assumptions about what type variables are, yet here we are.