Crosscut

Daily Thought - 2024-10-11

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

I've been talking about rendering data as more than just text. Let's imagine a function that helps us do that. Not sure what its name should be, but for the sake of this discussion, let's take inspiration from Rust and call it dbg.

This dbg function would be a no-op in production, but if a development environment is attached, it would send the data there. The editor, when displaying a function with dbg calls, would make space for the output from those, next to the code. Basically, if you opened a function, you'd automatically open a dashboard for the function at the same time.

In addition to development, you could use this mechanism for creating an ad-hoc UI for your program. Not something you'd ship to users, but for personal software? A quick simulation, maybe something you'd otherwise use a spreadsheet for; why not?

<< 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.