4 ms·
Well, if I look at C/C++, I feel that since & means a bitwise operation and && means a boolean operation, and & in front is a reference operator, that & is "Hav
by darkchasma 14y ago
Well, if I look at C/C++, I feel that since & means a bitwise operation and && means a boolean operation, and & in front is a reference operator, that & is "Having a meaning that is mysterious or obscure" since the symbol changes in context.
I also feel your semantic example is overly obtuse.
func SumOf left and right
is left + right
--
result is SumOf left and right
--
- 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.