3 ms·
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?
by msie 1y ago
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?
- hyperbrainer 1y agoIf functions are first class, then they must be stored as variables. I mean, consider any FP Language.
- msie 1y agoThey can still be first class without declaring them in this manner.
- TurboHaskal 1y agoSure. But if they are first class and you have a mechanism to assign them to variables then there is no need for syntax sugar.