Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Fire-Dragon-DoL
54 days ago
|
parent
|
context
|
favorite
| on:
John Carmack on mutable variables
In typescript and js you get immutable references, but the data is mutable. Definitely not the same thing
dougherty
54 days ago
[–]
You have `as const`. Yes I know it's not enforced at runtime, but the type system does support it.
danenania
54 days ago
|
parent
[–]
There’s Object.freeze for enforcing at runtime.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: