3 ms·
Operators operate on the list. Conditions test the list. How is that confusing?
by kingkongrevenge 18y ago
Operators operate on the list. Conditions test the list. How is that confusing?
- shrughes 18y agoIt's completely different behavior depending on the type of operator. Edit: And apparently it even respects the associativity of the operator! There is nothing gained by making the language more complicated just to cut a few characters.
- kingkongrevenge 18y agoIsn't this like complaining that '[how the hell do you escape two asterisks?]' for exponentiation is too confusing?
- shrughes 18y agoYou're not reading what I've said, are you.
- utx00 18y agoyeah. i don't really get what is being gained. you have to keep some much context in your head in order to write perl - as compared to python ... it's tiring (as i keep saying)
- wolverian 18y agoIf you use the operator, it's (hopefully) safe to assume you know what it does. Then you should also know what interleaving the operator between the list elements does. Which is exactly what the reduction does. I don't understand your problem with it.
- scott_s 18y agoIt's all about context. The more of the enclosing context you need to keep in mind to understand a line of code, the more you increase the cognitive load on the programmer.