Evaluation Interface #401
                  
                    
                      chris-pardy
                    
                  
                
                  started this conversation in
                Ideas
              
            Replies: 1 comment
-
| @emilefokkemanavara core idea for a totally new version | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Thinking about a next version of this library and I think there needs to be a single type to encapsulate all the things rules and conditions can do. There are 2 potential versions of that.
Almanac on Steroids
This is an interface that encapsulates all the things we know the system can do:
This approach allows for fairly simple condition classes that read pretty clearly.
Hyper Generic
If we really wanted to open up the rules engine to extension we could build it on a much more skeletal framework and allow anyone to extend it this could look something like this.
Writing the condition would then be slightly more verbose.
Beta Was this translation helpful? Give feedback.
All reactions