-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Hey.
When working with objects in a C++ function, it turns out that its quite hard to avoid boilerplate code.
I would like to make a few suggestions:
- Offer wrapper types to access values in objects/arrays. Example:
OS::Object obj = os->toObj(...); std::string str = obj["foo"]; - Offer convenience methods to convert arrays into lists:
OS::List ls = os->toList(...); std::string str = ls[0];
I am mainly asking, since I am trying to write a converter between (VarObject)[https://github.com/eJimLee/VarObject] and an OS Object.
I just can't seem to find a "good" way of doing it. So having a method provided by the internals would be very nice. Do you think this could be implemented?
Kind regards, Ingwie.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels