2 ms·
I believe the `\` character for functions is original to Haskell. Miranda does not have anonymous functions as a part of the language.
by throwaway17_17 2y ago
I believe the `\` character for functions is original to Haskell. Miranda does not have anonymous functions as a part of the language.
- pezezin 2y agoThe \ is a simplified lambda, because most programmers can't type λ easily.
- robertlagrant 2y agoI would be very in favour of making λ a keyword, though. Maybe a linter could convert \ to λ.
- iso8859-1 2y agoit would be confusing since it's not part of UnicodeSyntax https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/unicode_syntax.html https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/unic...
- robertlagrant 2y agoWell, 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.
- robertlagrant 2y agoArgh. Synonymise.