Hacker News new | ask | show | jobs
by occoder 1115 days 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!

3 comments

When I first read this, I thought the function names could only include letters from the word function, and only in order!
Incidentalley this allows for

   count func (a,b) => ...
   in out (a,b) => ...
   of if (a,b) => ...
Wonderful language, wonderful.
The letters have to be in order so maybe this will not work?
That's right, "in" works, but "count" and "of" don't.

Here are some of my favorites:

union

funi

funion

fution (sounds like fussion)

fu

fuc

fucton (as noted by a fellow commenter)

You 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.