Hacker News new | past | comments | ask | show | jobs | submit login

Raku has kebab-case as well as infix subtraction. Sigils disambiguate when the operands are variables ($foo-$bar), and callables must be made explicit:

    sub foo-bar { 10 }
    sub bar-foo { 7 }
    say foo-bar-bar-foo; # Undeclared routine error
    say foo-bar()-bar-foo; # 3



Or just do:

    say foo-bar - bar-foo;
which would improve readability as well!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: