Allow to use only specific operators
See original GitHub issueIt may be useful to expose all operators separately and allow users to create own instance of sift
that supports only specific operators.
benefits form this:
- We can reduce bundle size on client (by using tree-shaking feature)
- We can restrict users to use only allowed operators (e.g., forbid usage of
$where
) - Potentially separation on operators and execution engine may allow to implement processing of async conditions easier
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Could I use operator == if I only implemented operator
No. This method works well on number-like objects that is called totally ordered. For all kinds of set/class, no one can guarantee this...
Read more >operator overloading - cppreference.com
[edit] Overloaded operators. When an operator appears in an expression, and at least one of its operands has a class type or an...
Read more >Search Operators | GovInfo
Proximity Operators allow you to specify searches where one word is near, next to, or in the vicinity of another word.
Read more >Overloading operators (C++ only) - IBM
You can redefine or overload the function of most built-in operators in C++. These operators can be overloaded globally or on a class-by-class...
Read more >Operator Overloading, C++ FAQ - Standard C++
Operator overloading allows C/C++ operators to have user-defined meanings on ... usually be many people who use your class, but there is only...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Exactly!
Do you mean to import operators separately into sift? E.g:
Additionally, operators could be separated out into individual files: