Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
snidane
on Jan 21, 2020
|
parent
|
context
|
favorite
| on:
Grammars for Programming Languages (2018)
Make the right side of the function call a list or a dict.
myListOfInts foldLeft (0, +)
or if you make : to be right associative cons function
myListOfInts foldLeft 0 : +
or using dict
myListOfInts foldLeft (zero: 0, op: +)
lmm
on Jan 22, 2020
[–]
At that point you're introducing significantly more syntax, destroying the nice lisplike properties.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: