Crosscut

Daily Note - 2025-05-09

Hey, I'm Hanno! These are my daily notes on Crosscut, the programming language I'm creating. If you have any questions, comments, or feedback, please get in touch!

When formatting a syntax tree using postfix syntax, my first instinct was to start with the children in the upper-left, then indent their parent. So a function call looked like this:

argument
    function

I was going to expand that into a more complicated (and realistic) example and demonstrate how confusing this could get, but then realized that I could only reproduce the worst problems I encountered by using free-form structural editing. So the switch to restricted structural editing by itself solves a lot of issues.

So that's one less reason to switch away from postfix syntax, I guess. But I don't think this significantly weakens the overall argument, as postfix syntax generally doesn't interact well with restricted structural editing. And even if the worst problems are fixed, that still leaves us with the general weirdness of this unfamiliar representation.

Hey, you! Want to subscribe to my daily notes? Just let me know (maybe include a nice message, if you're up for it), and I'll send you an email every time I post a new one.