4 ms·
In a previous revision of the language, I did! (https://github.com/zesterer/tao/tree/old https://github.com/zesterer/tao/tree/old). I decided against it because
by zesterer 4y ago
In a previous revision of the language, I did! (https://github.com/zesterer/tao/tree/old https://github.com/zesterer/tao/tree/old). I decided against it because, in short, I find the trailing delimiters to be quite ugly.
Because this is purely a personal project, I'm thankfully not constrained by such mundane concerns as "ergonomics" (unless such concerns relate to me while I'm working with it). I think Pythonic syntax is probably the way to go long-term though...
- patrickkidger 4y agoPersonally I'm a big fan of Julia's syntax here. Indentation-insensitive with the use of the word "end" as the terminator for all types of block. In practice you can lay it out like Python, and the "end"s help you keep track when e.g. you need to place a single expression after some deeply-nested blocks.
- catlifeonmars 4y agoIs indentation actually necessary to parse a block? I think if you have a well defined terminator (a literal keyword token, such as `end`), indentation can just be a function of an autoformatter with no indentation constraints on syntax.