Re:What you can write in Perl 6 today
by kingkongrevenge on Friday April 24, 2009 @11:10AM
(#577589)
Operators operate on the list. Conditions test the list. How is that confusing?
[ Parent
| on HN ]
It'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.
If 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.
yeah. 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)
Re:What you can write in Perl 6 today
by kingkongrevenge on Friday April 24, 2009 @11:21AM
(#577604)
Isn't this like complaining that '[how the hell do you escape two asterisks?]' for exponentiation is too confusing?
You're not reading what I've said, are you.