News for hackers. Stuff that matters.
Re:Grammars for Programming Languages (2018) by lmm on Tuesday January 21, 2020 @03:08AM (#22105125)
Interesting idea.

How would you write functions of multiple arguments as infix? Scala can get close to

    myListOfInts foldLeft 0 +
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?

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: +)
Re:Grammars for Programming Languages (2018) by lmm on Wednesday January 22, 2020 @01:25AM (#22115104)
At that point you're introducing significantly more syntax, destroying the nice lisplike properties.