Whack: serialization #3642
hydroperfox
started this conversation in
General
Replies: 1 comment
-
Whack™ engine: few parameterized types and all tuples are real |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My Whack engine for ActionScript 3 is getting some internal update so that it can support serializing classes more directly without requiring explicit serialization methods.
Serialization: to do
I'm planning for example, that this:
Should produce something like:
So, even though we're targetting JavaScript, some parameterized types will be real at runtime (
Vector.<T>
,Array.<T>
, andMap.<K, V>
); others will be erased (includingPromise.<T>
).I'm updating mostly ActionCore and the Whack libraries, not the SDK for now. ^_^ I have also added some strategy notes on how MXML and CSS are going to be compiled inside the SDK.
Also, this serialization usage reminders of Rust's
serde
, although it's entirely functionally different and the implementation will use a couple ofReflect
static methods instead of the inefficientdescribeType()
.Beta Was this translation helpful? Give feedback.
All reactions