Skip to content

Use the index methods as central mechanism for reading and writing properties #59

@t6d

Description

@t6d

In order to attach additional behaviour whenever a property gets read or written, the index methods #[] and #[]= should be used for calling Property#get and Property#set as opposed to using the attribute readers and writers.

This would for instance allow one to implement dirty attribute tracking by overriding []= or track which properties have been initialized vs. which properties fall back to their default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions