Comment

Comment by AETackaberry

> let and const only control mutability of the reference. They say nothing of the value mutability. const then can only be a signal that you are not reassigning to the identifier.

Wouldn't this definition suggest that the value CAN be reassigned? The reference could be immutable but allow value reassignment, but is not the implementation of const.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton