Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
WorldMaker
on Jan 11, 2023
|
parent
|
context
|
favorite
| on:
On leading underscores and names reserved by the C...
One additional fun thing to note is that despite "private" already being reserved as a keyword TC-39 when they did somewhat recently add private fields to classes a few years back decided on "hash names" over the private keyword.
class Example { #privateFieldName }
Rather than:
class Example { private privateFieldName }
The debate on that was pretty interesting.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: