Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
igl
on Sept 19, 2017
|
parent
|
context
|
favorite
| on:
Announcing CoffeeScript 2
Everything is an expression. Including if statements. There is no need of such syntax abominations.
jashkenas
on Sept 19, 2017
|
next
[–]
Bingo. Remember when you first first learned the ternary operator syntax? I recall thinking something along the lines of, "Wow, that's cryptic!"
result = if condition then success else failure
sgustard
on Sept 21, 2017
|
prev
[–]
Sure, but other coffee operations like x||=5 are also abominations. Brevity and purity are often at odds and the choices made by a language can be arbitrary.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: