Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
throwaway17_17
12 months ago
|
parent
|
context
|
favorite
| on:
Roc rewrites the compiler in Zig
I believe the `\` character for functions is original to Haskell. Miranda does not have anonymous functions as a part of the language.
pezezin
12 months ago
[–]
The \ is a simplified lambda, because most programmers can't type λ easily.
robertlagrant
12 months ago
|
parent
[–]
I would be very in favour of making λ a keyword, though. Maybe a linter could convert \ to λ.
iso8859-1
12 months ago
|
root
|
parent
[–]
it would be confusing since it's not part of UnicodeSyntax
https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/unic...
robertlagrant
12 months ago
|
root
|
parent
[–]
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.
robertlagrant
12 months ago
|
root
|
parent
[–]
Argh. Synonymise.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: