Coding 2022-10-24

By Max Woerner Chase

I know it's pretty basic, but every time I think about this enum stuff, I end up going in circles.

I'm currently leaning towards "the stuff I'm thinking of doing with metamethods is too confusing at every level", so I'm considering other ways to have names in order. Like, let's compare...

local ordered = fields().abc.def.ghi  -- Complicated under the covers

local ordered = fields{{abc = {}}, {def = {}}, {ghi = {}}} -- A bit wordy

On reflection, it is wordier, for sure, but it's mostly going to end up on distinct lines anyway, and it gives me a convenient way to make things that contain their name: define a function to process each table, and run it over the table.

I think that gives me something good to try next time around.

I wish I'd gotten further, but to be honest, I'm still not totally sure my laptop isn't going to suffer some horrible failure, only mostly sure.

Anyway, I need to get ready for bed.

Good night.