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

I believe the `\` character for functions is original to Haskell. Miranda does not have anonymous functions as a part of the language.


The \ is a simplified lambda, because most programmers can't type λ easily.


I would be very in favour of making λ a keyword, though. Maybe a linter could convert \ to λ.


it would be confusing since it's not part of UnicodeSyntax

https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/unic...


Well, even better to add it to that! But I was thinking generally, to be honest. I really want Python to synonimise the keyword lamdba with the λ symbol so I can golf my Advent of Code code better.


Argh. Synonymise.




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

Search: