2 ms·
We still have "fn". :)
by pcwalton 13y ago
We still have "fn". :)
- awj 13y ago..and since you're freeing up ~, you can now rename 'fn' to it. Rust criticism would drop to nearly zero, because everyone would focus in on your crazy function-defining-tilde and those people just don't get it.
- xiaq 13y agofn is my favorite keyword for function definition. "function" is too long. "def" doesn't say anything about functions (unless you read it as DEfine Function). "func" sounds too funny. "defun" always reads "defunct" to me. And just out of curiosity, where did the rust designers get the inspiration for "fn"? I know plan 9 rc and clojure have "fn". Or maybe it's independent invention?
- dbaupp 13y agoAnonymous functions in ML, possibly.
- pcwalton 13y agoWell, I slightly prefer "fun", but the Rust community pretty firmly favors "fn", and they're about the same anyway. As far as I know it came from ML.
- xiaq 13y ago"fun" is even funnier than "func"! ML etymology sounds pretty plausible (I didn't know ML uses fn) since I can see there is a strong influence of ML on Rust.