-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support .nil?
in DSL
#93
Comments
Hmm... sort of, but this feels pretty like it would cause unexpected problems that would be really hard to figure out what went wrong. Plus, then we'd have to support I would rather add |
One problem with |
Yeah, the initial reason why I proposed this change was Rubocop complaining. I feel kinda stupid not thinking about tbh, Besides, Rubocop also complains about |
That's configurable. :) Obviously a static analyzer can't really figure out that something might be a special DSL. I think in such situations you can just exclude the DSL files from the checks and be done with it. |
Right now, in order to check if something IS NULL, I have to use
field == nil
in the DSL. Wouldn't it be more ruby-esque to be able to sayfield.nil?
instead?The text was updated successfully, but these errors were encountered: