3 ms·
This feature really isn't all that bad! > To declare a function, you can use any letters from the word function (as long as they're in order): > function add
by occoder 3y ago
This feature really isn't all that bad!
> To declare a function, you can use any letters from the word function (as long as they're in order):
> function add (a, b) => a + b!
> func multiply (a, b) => a * b!
> fun subtract (a, b) => a - b!
> fn divide (a, b) => a / b!
> functi power (a, b) => a * b!
- mysterydip 3y agoWhen I first read this, I thought the function names could only include letters from the word function, and only in order!
- l0b0 3y agoYou must be a fan of Subversion then. On a more serious note, I'm sure I've seen this (any unique shortenings standing in for the whole word) in an actual language at some point, and it was infuriating.
- eps 3y agoIncidentalley this allows for count func (a,b) => ... in out (a,b) => ... of if (a,b) => ... Wonderful language, wonderful.