Comments (4)
This also solves the incorrect precedence of the ternary operator that is present in filtrex v2, see this SO post.
from filtrex.
Add back a ? b : c
and make it deprecated.
from filtrex.
Why not support both - personally I prefer ternary operators?
from filtrex.
Hey Mike,
Both if-then-else and the ternary operator ?:
are currently supported, the latter being marked as deprecated. Since Filtrex is intended to be usable by laymen (ie. the users of applications, not their developers), I think it makes sense to make it familiar for that kind of users. That was my rationale for deprecating the ?:
operator, as it is one of the more obscure operators even for programmers – most non-programmers probably never heard of it.
from filtrex.
Related Issues (20)
- Investigate rewriting in PEG
- Unary minus has precedence over exponentiation (ie. incorrect parsing of −x²)
- `not in` has weird precedence
- Exponentiation is left-associative
- Add option to use dot attribute access HOT 9
- Access nested object properties HOT 1
- Boolean values are handled as property names HOT 5
- Remove `random` from standard functions to promote reliability
- Change modulo from `%` to `mod`
- Make a changelog for v3
- Add support for asynchronous expressions HOT 1
- Add a Contributing section to README
- Update examples and make new ones
- Filtrex fails CSP HOT 9
- Translatable parser errors
- Get a list of used variables HOT 1
- "non-existent variable" and "!=" expression should return false HOT 1
- Comparing a user supplied string to a string on the data object HOT 5
- Support in async functions
- Single item arrays HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filtrex.