News for hackers. Stuff that matters.
Re:Type Checking in JavaScript by rimo on Wednesday November 06, 2013 @08:42AM (#6682589)
Static types and unit tests don't solve or catch all problems. I'm thinking about event-driven messaging systems, which is pretty common in js; Static typing will not be of any help in that situation.
Re:Type Checking in JavaScript by danbruc on Wednesday November 06, 2013 @10:42AM (#6683211)
Sufficiently advanced type systems can enforce an enormous range of constraints. You can for example create a type for trees enforcing that the tree must be balanced; code that would unbalance a tree will just not compile.
Re:Type Checking in JavaScript by embwbam on Wednesday November 06, 2013 @09:20AM (#6682758)
You can use a different observer pattern sometimes that can be caught by static typing, like Signals