Skip to content

cpp mode methods #207

@henryiii

Description

@henryiii

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:

  1. 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.
  2. ax.metadata is a property, all others are methods.
  3. ax.metadata() is a method, and ax.metadata_set(value) is available (name TBD), similar to at/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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions