Hacker Newsnew | comments | ask | jobs | submitlogin
draegtun 1347 days ago | link | parent

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



Lists | RSS | Bookmarklet | Guidelines | FAQ | DMCA | News News | Feature Requests | Bugs | Y Combinator | Apply | Library

Search: