Crosscut

Daily Note - 2025-05-26

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!

Okay, let's say we settle on : for prefix-style function application:

function: argument

And a pipe operator (|>) for postfix-style function application:

argument |> function

We'll have to see if it really ends up happening like that, but as of now, this seems reasonable to me.

I think it's an interesting observation, that this would mean there's no default. Both prefix and postfix require an explicit syntax. If you have neither, then you're using the function as a value. (Although one of them might become the default style in practice.)

Another interesting observation is that both : and |> are infix operators. Something that I didn't' want in the language. Let's dive into that tomorrow.

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.