Skip to content

[FR]Support Short-circuit for eval bool exp #155

Description

@Leojangh
    #[test]
    fn it_works() {
        let mut context = HashMapContext::new();
        // context.set_value("a".into(), false.into()).unwrap();
        let x = eval_boolean_with_context("true || a", &context).unwrap();
        println!("{}", x);
    }

It got an error: VariableIdentifierNotFound("a")。But if short-circuit is supported, it should be computeable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions