Daily Thought - 2024-07-16
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.
Caterpillar is, as of right now, untyped. This means there is only a single data type supported by the language, 32-bit numbers, that represents any value you might need. A 2D vector, for example, is just two such numbers, and there is no mechanism that would prevent you from mistaking half of that for, say, the player's score.
This is not some far-reaching design decision. It's just how it works right now. Because I had to start somewhere, and anything else would have been harder. For the time being, it makes the most sense.
At some point in the not-too-far future, I want to switch to strong, dynamic typing. That way, you at least get an error at runtime, if you make a mistake. From there, I want to make the language gradually typed, until eventually, it becomes fully statically typed.
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.