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

Add feature enhancement #11

Open
sveyret opened this issue Nov 20, 2022 · 0 comments
Open

Add feature enhancement #11

sveyret opened this issue Nov 20, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@sveyret
Copy link
Collaborator

sveyret commented Nov 20, 2022

It would be good to have a way to enhance a feature. For example, if I create a type Date and I want to ensure that an object of type Date is equal to a value, I would like to override the current equal feature to treat my Date object.

We could have, for example:

function replaceFeature(name, replaceFn)

Where name is the name of the replaced feature, and replaceFn is a function taking the previous function as first parameter and returning a new function managing the new behavior.

@sveyret sveyret added enhancement New feature or request good first issue Good for newcomers labels Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant