by amelius · 6y ago · 0 comments
In the end my code ends up like python but with an extra end, which, while adding a possibly unnecessary line of code it at least makes it trivial to copy and paste something into the repl (or other part of the code) without worrying about indentation.
I don't know whether using {} for both types & blocks would be hard to parse, maybe it's possible. I have heard & can believe that parsing <> as a 4th ascii bracket is pretty tricky.
That's probably because < can appear without >, e.g. in a<b.
They have the benefit also of being usable for indexing and array expressions