Jonathan Sherrill
Sep 6, 2018 · 1 min read

Necropost!

Javascript is strongly typed for primitives. But we don’t just work with primitives these days. What I need is strong typing at the class level. It’s great that I don’t add an integer and string to get a pointer, but I also don’t want to add a Ford and Log to get a Dog.

Type inference is great, but it’s best when it’s limited to compile time inference. Otherwise you can’t have type checking for method parameters.