Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
msie
· 1y ago · 0 comments
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?
Comments
[–]
hyperbrainer
1y ago
If functions are first class, then they must be stored as variables. I mean, consider any FP Language.
[–]
msie
OP
1y ago
They can still be first class without declaring them in this manner.
[–]
TurboHaskal
1y ago
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.