Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
conartist6
on Oct 11, 2024
|
parent
|
context
|
favorite
| on:
Proposal: JavaScript Structs
"let" is one of the good parts. Just don't use const or var.
yakshaving_jgt
on Oct 11, 2024
[–]
Why is it? Why is block scoping useful?
colejohnson66
on Oct 11, 2024
|
parent
[–]
Because it's how almost every C-syntax-like language works. JavaScript is the odd one out.
yakshaving_jgt
on Oct 11, 2024
|
root
|
parent
[–]
I’d prefer to just embrace it. Keep the language small. Prototypical inheritance works just fine. There’s enough in
The Good Parts
to get all the work done.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: