i just had a really long conversation with my clanker about #moxie package globals. i had already specified in the language that they are compile-time enforced immutable, cannot be written except in the init() function
this was missing enforcement.
the result was that i have eliminated all var and const qualifiers from package symbols - they are all imutable, like const semantics but the whole segment of the source code is now const so why burden the code or compiler with requiring or expecting and ignoring that because it's implicit. it left just one thing, the go form of enums, iota. so i have added a new builtin "enum" and inside enum, you have standard go const iota declarations. the iota stays because we get the option of increment, or optional iota << 1 and iota * 2 or whatever shit you want (those two are operationally the same).
now, moxie package globals look different. anything that is not func/type/package/import/enum is now effectively implicitly like const, except it applies to types that Go doesn't let you const like slices and map literals. the further impact is that all types that are not initialised - because moxie only allows initialisation inside init(), must be typed. you can skip the type if you initialise it with a literal value like 1 or "string" or struct{ name type value }. or other literals.
why i am feeling so excited about this, and why it feels so cathartic, is because this is something that NO OTHER LANGUAGE has made properly pure deterministic declarative. many places it lets you push a const into any given width (scalar/integers).
i basically enforced axiom 1 - all must be explicit - in all of moxie now, that's a big deal, and why it was so cathartic is because it took quite a bit of thinking how to minimise the change set. the end result is that ripping out the var and const prefixes has a clear rule, splitting const blocks with iotas they have to now be distinct enum blocks, everything is clean, precise, and explicit.
moxie: explicit, isolated, closed
that's something that no other programming language has ever guaranteed. that's why moxie is important, and it's why unless you are a veteran of BASIC and/or assembler and compiler writing:
