Crosscut

Daily Thought - 2024-10-08

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

This thought was published before Crosscut was called Crosscut! If it refers to "Caterpillar", that is the old name, just so you know.

< back to list

Given the disadvantages of delimiter-less data structure literals, it's probably better to just use commas everywhere. [ a b ] would become [ a, b ]; [ a b 1 + ] would become [ a, b 1 + ]. It's a small sacrifice in the name of readability and simplicity.

If that's the solution, branch parameters should be updated too. They don't need delimiters to be unambiguous or readable, but I think this is a case where consistency aids learnability.

In addition, they're likely to get more complex, as more sophisticated pattern matching is introduced. Maybe having delimiters there will become advantageous or even necessary in itself.

<< previous thoughtnext thought >>

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