ason icon indicating copy to clipboard operation
ason copied to clipboard

Resurect commitment to reflection and serialization

Open jtenner opened this issue 4 years ago • 0 comments

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.

jtenner avatar Dec 11 '21 22:12 jtenner