Gave Compis some attention this weekend, giving it Python-style whitespace indentation. It’s pretty neat as it’s done completely at lexeme time, ie the “source text scanner” synthesizes “{“ and “}” tokens as the indentation rises and falls. As a result it’s both very regular (predictable) and easy to disable (in the scanner, without having to change any other code.)

But is Python-style WS-sensitive structuring ultimately a good idea..?

[Screenshot: these three functions produce identical ASTs]

mastodon.social ↗

Sign in to like, save or reply.