Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
yakshaving_jgt
on Oct 11, 2024
|
parent
|
context
|
favorite
| on:
Proposal: JavaScript Structs
Why is it? Why is block scoping useful?
colejohnson66
on Oct 11, 2024
[–]
Because it's how almost every C-syntax-like language works. JavaScript is the odd one out.
yakshaving_jgt
on Oct 11, 2024
|
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: