51 minutes ago · Tech · hide

Hello, loves! I did this. I guess I’ll write it up in case I ever want to know it. Luau, the language I used for the Atom example of the past couple of articles, provides rather decent type hinting. It has “a gradual type system with type inference”, which, from my experience as a user means that you can annotate things with types and if you do, Luau provides checking and prompting based on what you’ve told it, and based on what it can figure out from what you’ve told it. For example, it can sometimes deduce from the types you’ve declared what the types of some other things are. The type stuff is all done at editing time: there is no type checking at run time: it’s ducks all the way down by then. I’ve been using Luau’s ‘strict’ mode, which means that it is pretty aggressive about working out types and putting red squiggles under things that seem wrong to it. The particular language analyzer I’m using has been pretty helpful even when I declare very little. So I’ve been kind of easing…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town