News for hackers. Stuff that matters.
Re:How necessary are var, let, and const? by braythwayt on Monday June 01, 2015 @12:02PM (#9639674)
> 3) const + deep Object.freeze() makes for a complete const.

The trouble with this approach is that runtime checks are only a guarantee that the code you've _exercised_ does not break the contract.

In that respect, `const` is deeply different than `.freeze`, in the same way that runtime assertions are deeply different than type checking.

Re:How necessary are var, let, and const? by pm24601 on Monday June 01, 2015 @12:05PM (#9639710)
Huh? That's why I pointed out the joint usage. And either way, a instant failure is better than a silent change.