Skip to content

Implement Getter and Setters for ES3 via compiler #2219

@shmuelie

Description

@shmuelie

The power of properties is great and sadly they don't exist in ES3. We do though have a compiler that could convert the property and all it's calls to get and set calls.

For naming I think simply appending _get or _set to the property's name would work. Then it's just a case of looking for all reads, replacing them with calls to property_get() and all sets with calls to property_set(value).

We have the calling information since we can do refactoring, so I'd think changing the usages to function calls could be done.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    By DesignDeprecated - use "Working as Intended" or "Design Limitation" insteadCanonicalThis issue contains a lengthy and complete description of a particular problem, solution, or design

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions