-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Milestone
Description
In cpp mode, I've been using methods instead of properties to exactly mimic C++. This will (still) cause a compromise somewhere: you can't set metadata without coming up with a new method or making it a property. Here are the options:
- All argumentless methods are properties, like in Python mode. Note we also have
.at(), which has an identical problem, but can't be made into a property. ax.metadatais a property, all others are methods.ax.metadata()is a method, andax.metadata_set(value)is available (name TBD), similar toat/at_set(name TBD). No methods are turned into properties.
I rather like number 3 best, I think, but no clear winner for me. @HDembinski ? Also, if there are any other things in C++ that support x.y() =, those would fall in this category with metadata.
Metadata
Metadata
Assignees
Labels
No labels