3 ms·
> I also feel your semantic example is overly obtuse. Exactly what I think of if ... then ... else IMHO, your plus sign is "pointlessly terse and cryptic". Se
by kaoD 14y ago
> I also feel your semantic example is overly obtuse.
Exactly what I think of if ... then ... else
IMHO, your plus sign is "pointlessly terse and cryptic". See what I did there? Now seriously, why func? I prefer Coffee's (arg1, arg2, ...) -> syntax for functions. What strikes me as odd is the fact that such a slim language gets verbose in such aspects.
Of course my example is overly obtuse: it's just an hyperbole!
But anyways, I suspect the if ... then ... else syntax is just a side-effect of ? being used as an existential operator in CoffeeScript.
- darkchasma 14y ago> IMHO, your plus sign is "pointlessly terse and cryptic". See what I did there? No, I don't see what you did there because + has one and only one meaning, and that is add. Every child can identify what + means, the same cannot be said for (a,b) ->, even to developers who have developed their entire lives (unless they have experience with coffeescript). Hence, cryptic.