Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce re-implementation of common templates #188

Open
cgcostume opened this issue Jul 7, 2019 · 0 comments
Open

reduce re-implementation of common templates #188

cgcostume opened this issue Jul 7, 2019 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@cgcostume
Copy link
Member

this issue is intended for collecting small patterns that are heavily/frequently used within webgl-operates code basis. I would like to see these "snippets" replaced by, e.g., some form of meta programming, transpiling, or something similar ...

Setter only setting when different:

set object(object: Type) {
    if (object === this._object) {
        return;
    }
    this._object = object;

    /* bookmark alteration or trigger some update/recomputation ... */
    ...
}
@cgcostume cgcostume added enhancement New feature or request question Further information is requested labels Jul 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant