j2s should be able to take in multiple types #21

Open
opened 2023-12-03 22:39:24 +00:00 by lda · 1 comment
Contributor

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.

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.
jordan added this to the Cytoplasm v0.4.1 milestone 2023-12-05 12:56:40 +00:00
jordan added the
enhancement
label 2023-12-05 12:56:51 +00:00
Owner

@lda Do you think we still need this since we didn't end up using it for Telodendria/Telodendria#46?

@lda Do you think we still need this since we didn't end up using it for Telodendria/Telodendria#46?
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Telodendria/Cytoplasm#21
No description provided.