Crosscut

Daily Thought - 2024-09-18

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

Infrastructure for rendering arbitrary types is just the start. We also need the same kind of infrastructure for editing arbitrary types.

Yes, you can always type a new number in the editor. But for some values, it might be better to have a slider. Imagine tweaking a value that way, and experiencing the resulting change in your program right away. How much more immediate of an experience would that be? How much more efficiently could you tweak your code's behavior?

Other data types would require other kinds of special editors. And IDEs already do that, sometimes. It's not uncommon to see a color picker when editing CSS, for example. But as far as I've seen, it's always special-purpose. And I think it needs to be a standard thing supported by the language and its tooling. Something that every library author can use without hurdles.

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