ason
ason copied to clipboard
Resurect commitment to reflection and serialization
Let's make a mess.
- Need to add:
ASON.getOwnMethodNames(value);
ASON.getOwnPropertyNames(value);
ASON.getProperty(value, nameStr): ASONReflectionProperty; // computed or not
ASON.getMethod(value, nameStr, isStatic = false): ASONReflectionMethod; // static or not
ASON.serializeReflected(value): StaticArray<u8>; // Do no type assertion
ASON.deserializeReflected<T>(buffer): T; // Do no type assertion
Massive undertaking, given it's own separate transform for reflection. This should enable end users to reflect over references, and transfer data of the same shape and size between AssemblyScript modules without the previous restrictions.