News for hackers. Stuff that matters.
Re:Using const/let instead of var can make JavaScript code r... by dtf on Wednesday October 21, 2020 @06:22AM (#24846378)
There's a record & tuple proposal that would address this use case (currently served by tools such as Immer):

  const foo = #{};
  foo = 42; //not allowed
  foo.bar = 'baz'; //not allowed
https://2ality.com/2020/05/records-tuples-first-look.html

There are no comments on this comment yet.