You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The behavior above makes sense to me though my gut says it could be a little tough to implement. If you're looking for a workaround, it will function as described so as b is specify and it can be nil.
Dentaku!("a OR b",a: true,b: method_that_returns_b_or_nil)# could also use an `@ivar` to get the `nil` behavior when not set# => true
This one raises error as
b
was not provided.Semantically since
a
is true, the value ofa OR b
istrue
no matter what is the value ofb
.Would it make sense for Dentaku to raise
Dentaku::UnboundVariableError
only ifa
has falsy value andb
is missing?The text was updated successfully, but these errors were encountered: