Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jtth
on May 15, 2020
|
parent
|
context
|
favorite
| on:
The Great CoffeeScript to Typescript Migration of ...
This makes me miss CoffeeScript. Ah, well.
city41
on May 15, 2020
[–]
Only thing I still miss is noop functions are two characters. Everything else I liked is in JS now that nullish coalescing landed.
recursive
on May 15, 2020
|
parent
[–]
`_=>_` is technically more than two, but not by much.
hombre_fatal
on May 15, 2020
|
root
|
parent
[–]
Identity function is more confusing than just ()=>{} which is obviously noop because it doesn't return the input.
recursive
on May 15, 2020
|
root
|
parent
[–]
If you don't provide an argument, it will use undefined, which is the same thing yours returns. Maybe it's more clear, but it's about even for me.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: