On Tuesday, January 7, 2003, at 11:20 PM, Damian Conway wrote:
While I agree that hyper-operators are the better way to go(though I can see advantages either way), I was bored, so I tried to figure out a not entirely unpleasant Perl6-ish version of the Pike syntax.Chris Dutton wrote:Given discussions about "hyper" operators in the past, I found this rather interesting in the release notes.Interesting, but I still feel that vectorized operators give more flexibility.
http://pike.idonex.com/download/notes/7.4.10.xml
For example, I'm struggling to see how one could use the [*] to do this:
@names = «Gödel Escher Bach»;
@ages = $today »-« %date_of_birth{@names}
@ages[*] = $today - %date_of_birth{@names}.values[*]