Skip to content

Rules returning nil #270

Answered by palkan
inkstak asked this question in Q&A
Discussion options

You must be logged in to vote

should I add that just to please the specs?

I would say it's not about specs but about the API consistency; predicates must return true or false, there should be no third boolean value.

Thus, it's the latter:

should we state that a rule must always return true or false?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by inkstak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants