4 ms·
But if you develop without flowtype, do 95% of your JavaScript unittests consist of type checks?
by olavk 10y ago
But if you develop without flowtype, do 95% of your JavaScript unittests consist of type checks?
- monocasa 10y agoIn a proper type system a la Haskell, ML, Rust, etc. you can encode significantly more into the type system than you can with JavaScript's rather anemic offerings, even if it were statically typed. It feels almost like contact programming in that you must handle everything out else the code won't compile.