Re:Grammars for Programming Languages (2018)
by snidane on Tuesday January 21, 2020 @01:08PM
(#22109565)
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: +)
How would you write functions of multiple arguments as infix? Scala can get close to
which is... honestly not much more readable.How do you resolve ambiguity when functions take optional arguments / are overloaded? Or would you not allow that?