Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
SwiftyBug
on Sept 4, 2024
|
parent
|
context
|
favorite
| on:
Poor man's signals – tiny vanilla JavaScript signa...
I didn't know about that either. I find the new keyword useful as it instantly lets me know that I can expect the left-hand operator of the expression to be an object of a class, whereas cont foo = bar("value") doesn't say much about what foo is.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: