Hacker Newsnew | comments | show | ask | jobs | submit login

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



Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: