Comments (3)
The FEEL grammar for division or for that matter any Arithmetic Expression is specified in a generic way as : expression , "operator" , expression , and "Simple Positive Unary Test" is an expression, so technically "1 + 123 / > 3" is a valid FEEL expression even if it doesn't make any sense. I think some deliberation is required before we can invalidate this case.
from feel.
ok, thanks for the insight.
if we can talk more about that here ..
considering dmn scope "to provide a common notation that is readily understandable by all business users"
i think any dmn/feel implementation must be above spec maturity, and tools cant wait for that maturity so needs to be fixed / evolved when spec definition / maturity its against usability or natural use.
considering dmn final goal is to be user friendly, i think having parser that works as user needs / expects is part of that goal and more important that spec itself.
For example this "1 + 123 / [ 0 .. 3 ]" you mentioned is valid but there is a real user / business context where this is valid? would user even understand that or this "1 + 123 / > 3"
Sorry for the long comment, finally, since there are, i guess, two different approaches here (be strictly aligned to dmn literal spec or be flexible in order to prioritize user) it would be very important if you can define js-feel library position on this matter.
well again thanks for your thoughts on that. great work!
from feel.
@gustavomick I completely understand your concern. There are compromises in either of the mentioned approaches. As the library is not at a very mature state, we are trying to adhere to DMN 1.1 specs in a much stricter way to make most out of the specifications. I must also mention that we will be looking at expanding the library beyond DMN specs as business cases crop up eventually. In a way you can say that at the moment we are not that flexible to move beyond DMN specs but eventually to accommodate usability we will be making proper justified deviations.
from feel.
Related Issues (20)
- date("2012-12-23") >= date("2012-12-24") evaluates to true HOT 1
- Subtracting durations from date and time gives wrong year HOT 3
- Webpack HOT 2
- date("2018-07-31") - duration("P1M") fails HOT 1
- DMN Technology Compatibility Kit HOT 3
- Cannot parse valid dmn file HOT 1
- Does FEEL support units (UCUM)? HOT 1
- Feature: indicate which rules were used to obtain results HOT 1
- or list function results in parse error HOT 3
- Empty values in context HOT 1
- list indexing should be one-based HOT 1
- Unable to apply filter expression to a list literal HOT 3
- Built-in list functions do not allow variable argument lists HOT 2
- Add new DMN 1.2 numeric built-in functions HOT 1
- Realtime Condition/Action Update HOT 1
- Little bug when we try to nest decimal function
- Decision table execution always return null HOT 3
- not(true) seems not to work HOT 1
- No support for string() function HOT 1
- Using results outside of the async HOT 1
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 feel.