Still, not the greatest error message
# development
h
Still, not the greatest error message
w
mm, yea. very happy for help tightening up any cases that we can
a
this is something we could probably add to the existing
_RuleVisitor
in
rules.py
we already look to see if there are any
yield
statements without assignments
we could look for
return
statements and raise an error at rule parsing time for this, which actually seems like a reasonable solution
there might be another way to do it but i can't immediately think of a lower-overhead way to get the "this rule is a generator" vs "this rule is a function" bit
w
bare
return
would always* be a bug here, so could check for that at least