4 ms·
I really think you should consider using a shorter identifier than function. def? Or take the dart approach.
by karterk 15y ago
I really think you should consider using a shorter identifier than function. def? Or take the dart approach.
- tikhonj 15y agoI think using "function" for named functions makes the code more readable than something like "def" and is not super important. Now, you should really have a concise lambda syntax (not like JS or Python!), but that is a different story altogether.
- dchest 15y agoI wonder why almost every language designer miss the fun opportunity to name the function keyword "fun"? Even Go got it wrong with its "func"!
- evincarofautumn 15y agoA lot of language designers seem averse to a little whimsy in a design, which is a real shame. Programming should be fun. Then again, there are benefits to being boringly literal, too: you know what “removeTrailingNewline” does by its name, but not necessarily that “chomp” means the same thing.