News for hackers. Stuff that matters.
Re:V8 adds support for top-level await by root_axis on Wednesday September 25, 2019 @04:18AM (#21068823)
The const keyword has absolutely nothing to do with state mutability, that is a misconception. const in es6 is a keyword meant to explicitly prohibit identifier reassignment and it does indeed reduce bugs because it communicates developer intention regarding how a variable reference is expected to behave in a section of code. Further, use of const by default is a best practice because it leaves less room for error in cases where a reassignment must never occur and increases readability by convention of the let keyword signaling that a reference will behave in a volatile way in proximal logic.
Re:V8 adds support for top-level await by earthboundkid on Wednesday September 25, 2019 @09:58PM (#21077457)
My whole argument was premised on const not having anything to do with mutability.