News for hackers. Stuff that matters.
Re:Overview of JavaScript ES6 features by zbjornson on Monday October 24, 2016 @12:26PM (#12780281)
This is the same as a const ptr in C: the pointer can't change but the value it points to can. While it may seem broken it has its uses. Doing deep watches to disallow object mutation would be impossibly expensive (I think?).
Re:Overview of JavaScript ES6 features by netule on Monday October 24, 2016 @01:19PM (#12780788)
Not sure if this is valid C syntax, but in C++ you can do something like:

  type const * const
Which is a const pointer to a const type, making both the pointer and the data immutable.