News for hackers. Stuff that matters.
Re:How necessary are var, let, and const? by pm24601 on Monday June 01, 2015 @04:34PM (#9641946)
Not 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.

Re:How necessary are var, let, and const? by Havvy on Tuesday June 09, 2015 @02:59PM (#9687879)
instanceof cannot be determined statically because I can do...

    const a = {};
    Object.setPrototypeOf(a, SomethingElse);
Re:How necessary are var, let, and const? by pm24601 on Thursday June 18, 2015 @03:49AM (#9737278)
really? even on a frozen object?

Remember I have said const PLUS Object.freeze() Both are needed to get the true immutable effect.