Skip to content

Dentaku!("a OR b", a: true) raises, but probably should return true? #234

@vlazar

Description

@vlazar

This one raises error as b was not provided.

Dentaku!("a OR b", a: true) # => Dentaku::UnboundVariableError

Semantically since a is true, the value of a OR b is true no matter what is the value ofb .

Would it make sense for Dentaku to raise Dentaku::UnboundVariableError only if a has falsy value and b is missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions