3 ms·
Defining infix operators in Perl6 is very straightforward. For eg: sub infix:<.oO>($name, $thought) { say "$name thinks $thought" } "sz
by draegtun 16y ago
Defining infix operators in Perl6 is very straightforward.
For eg:
sub infix:<.oO>($name, $thought) {
say "$name thinks $thought"
}
"szabgab" .oO "Perl 6 is cool";
ref: http://news.ycombinator.com/item?id=1607254 http://news.ycombinator.com/item?id=1607254