buzz
buzz copied to clipboard
Anonymous objects
Something like php stdclass and zig anonymous struct literals.
Implies that we can subscript objects and possibly cast map into anonymous objects.
obj myObject = {
hello = "world"
};
obj["hello"] == "world;
<std, str>{"hello": "world"}.toObj();
Type checking is done by defining the ObjTypeDef while parsing the object initialization. Should can still type check access to it after.