Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For single placeholders I prefer the look of either the `_` syntax or the alternative some PLs have of `.`.

But otoh, Raku nicely stretches the approach to both zero and multiple placeholders:

* The zero placeholder `.methodname` in Raku is the same as Scala's `_.methodname`

* Any number of placeholders are allowed, so one can write eg `* + *` as an anonymous binary add function.



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

Search: