Coding 2023-11-29

Tags:
By Max Woerner Chase

My laptop hasn't done anything too objectionable since last time.

So far.

Anyway, I poked a bit more at MOTR, and it's going well, but I need to make a decision. There is an attribute that is currently optional, and I want to change the type from a union to a bound typevar. This is incompatible (currently? I'm not sure if this PEP would change that) with supplying a default value to attrs, so I need to make it a required argument, but it kind of sucks to make downstream stuff explicitly pass None, so I'd like to have some alternative constructors, and then I need to work out what those should look like. I'm somewhat leaning towards a minimal default constructor, and then "fluent" modification methods to open the type space back up, but this feels like something I need to think about, at least subconsciously.

So, I'm going to let that sit for a bit, and also ponder the other languages I'm considering looking at. The initial field was pretty weird and uneven, but right now it's narrowed down to Rust, TypeScript via Deno, and Kotlin. I'm not sure if the criteria I used were applied consistently or really make any sense, so please don't consider any of the choices I made or didn't make to be significant.

I'll have to look into doing something with them later. For now, I'm going to wind down.

Good night.