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

I’ve never liked the idea of the syntax where functions are declared and then assigned to variables. I guess it’s supposed to be elegant?


If functions are first class, then they must be stored as variables. I mean, consider any FP Language.


They can still be first class without declaring them in this manner.


Sure. But if they are first class and you have a mechanism to assign them to variables then there is no need for syntax sugar.




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

Search: