News for hackers. Stuff that matters.
Re:Spry: a programming language inspired by Smalltalk/Rebol ... by dkersten on Monday June 27, 2016 @03:16AM (#11984615)
So, if you leave out parentheses it uses indentation and switches to infix?
Re:Spry: a programming language inspired by Smalltalk/Rebol ... by akkartik on Monday June 27, 2016 @09:50AM (#11986132)
No, the two are independent. The rules for parentheses:

1. Multi-word lines without leading parens are grouped with later indented lines.

2. Indentation is not sensitive inside parens.

More info, unpacking the implications: https://github.com/akkartik/wart/blob/47e3572a29/004optional...

Infix works by using a disjoint set of 'operator characters' that isn't available to prefix symbols. More info: https://github.com/akkartik/wart/blob/47e3572a29/006infix