3 ms·
Aren't points 1 and 2 just arguments for a stricly typed language?
by jonny_eh 11y ago
Aren't points 1 and 2 just arguments for a stricly typed language?
- pm24601 11y agoNot at all. Simple things like instanceof / typeof checks can be resolved without a static type system. Because with a const everything is known about the const in question. Obviously the const prototype may change but then again if the const has a frozen prototype - that too can have static analysis applied to it. I am simply repeating the well-known benefits to immutables which is completely orthogonal to a type system, static or otherwise.