j2s should be able to take in multiple types #21
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Telodendria/Cytoplasm#21
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, a property defined in a j2s-generated struct can only be one specific type, but in some cases, it might be needed to allow different valid(and totally different) types(for example an object and a boolean).
This could be done by simply hiding a "type" enum, and an union of the allowed types.
@lda Do you think we still need this since we didn't end up using it for Telodendria/Telodendria#46?