Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lelanthran
on Jan 24, 2022
|
parent
|
context
|
favorite
| on:
Const all the things?
> To stay on topic, if x was declared const, you wouldn't have to guess. The compiler would tell you.
Frequently it can't be declared constant, because it is being changed in that scope as it runs.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Frequently it can't be declared constant, because it is being changed in that scope as it runs.