Skip to content

Refactor Tags as a simple class.#21

Open
fsmaibrgm wants to merge 1 commit intomainfrom
refactor/simple-tags
Open

Refactor Tags as a simple class.#21
fsmaibrgm wants to merge 1 commit intomainfrom
refactor/simple-tags

Conversation

@fsmaibrgm
Copy link
Copy Markdown
Collaborator

Previous implementation was inheriting from MutableMapping.
That was complicated and mixing two objectives: dict API and data storage.
It also had a "tag as attribute" interface.

New implementation is superior because:

  • API is better controlled as we expose only the read API
    • not the write API of dict
    • not the "tag as attribute" API
  • code base is simpler

Previous implementation was inheriting from MutableMapping.
That was complicated and mixingtwo objectives: dict API and data
storage.
It also had a "tag as attribute" interface
New implementation is superior because:
- API is better controlled as we expose only the read API
  - not the write API of dict
  - not the "tag as attribute" API
- code base is simpler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant