News for hackers. Stuff that matters.
Re:Pyret – A language exploring scripting and functional pro... by kazinator on Thursday December 15, 2016 @01:14PM (#13186724)
An infix language could also require whitespace around operators, so that a-b could be a an identifier.

Like in a Lisp infix macro: (infix (a + b * c) / d).

This kind of thing is quite habitable: we hardly lose sleep over (3.4) the list of one float versus (3 . 4) the dotted pair of integers.

Re:Pyret – A language exploring scripting and functional pro... by skrishnamurthi on Thursday December 15, 2016 @05:40PM (#13189308)
We're discussing an infix language that does exactly that. In Pyret, binary operators must be surrounded by spaces. Therefore, `a-b` is not ambiguous.
Re:Pyret – A language exploring scripting and functional pro... by brudgers on Thursday December 15, 2016 @03:45PM (#13188223)
I'd say that white space requirements around operators even seems implicitly consistent with the Pythonic idiom of semantic white space and the Pythonic dictum of only one way to do things.
Re:Pyret – A language exploring scripting and functional pro... by skrishnamurthi on Thursday December 15, 2016 @09:46PM (#13190681)
Python has many ways to do just about everything (e.g., list comprehensions are completely redundant). It's a nice marketing slogan, though.
Re:Pyret – A language exploring scripting and functional pro... by brudgers on Thursday December 15, 2016 @10:18PM (#13190803)
Yes, there's even two Pythons.