4 ms·
I really dislike the choice of `fun` to represent function, `func` is acceptable, `fn` is acceptable, I don't even mind `def` in Python, but `fun` is a widely u
by ryanar 7y ago
I really dislike the choice of `fun` to represent function, `func` is acceptable, `fn` is acceptable, I don't even mind `def` in Python, but `fun` is a widely used english word that is making me do mental gymnastics while reading mint source code.
- joshdance 7y agoI agree. It is jarring each time I see it. Might be able to get use to it but definitely question the choice.
- chmaynard 7y agoStandard ML uses the keyword fun to declare a function, so it didn't seem unusual to me.
- mbo 7y agoWalder's Law states that: In any language design, the total time spent discussing a feature in this list is proportional to two raised to the power of its position. 0. Semantics 1. Syntax 2. Lexical syntax 3. Lexical syntax of comments In future, I would suggest not nitpicking the most trivial, irrelevant detail of a language's design. Please consider the level of effort it has taken to create this language.