Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ha. When I read that example I thought "poor guy, he should have chosen a better one, now this will be nitpicked to death".

He is just demonstrating how `if` is also an expression, the comparison and return could be anything.



You are right. I should. This is definitely not a good example of showing "Everything is an expression" is CoffeeScript.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: