forked from joewalnes/filtrex
-
Notifications
You must be signed in to change notification settings - Fork 17
Add constants #38
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestimplementedThis feature is implemented in `develop` and ready for testingThis feature is implemented in `develop` and ready for testing
Milestone
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestimplementedThis feature is implemented in `develop` and ready for testingThis feature is implemented in `develop` and ready for testing
Sometimes, it is necessary to provide various constants to the user. Right now, the only way to achieve this is to modify the data, which is rather unfortunate – it would be much better to specify the constants only once at compile time. Example usage:
It should be possible to access data fields shadowed by constants using single-quoted symbols:
In order to keep the API simple, constants will bypass a
customPropfunction – if a developer wants total control over the identifiers, they shouldn't define any constants.