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
Using the safe navigation operator with other operators? #705
Comments
My feeling is that these should be highly discouraged for use with comparison operators. do_something if value1 &.!= value2
# not the same as
do_something unless value1 &.== value2 I personally can't grok either of the above and I have to "unroll" those in my head. For other operators I am neutral: ary &.<< elem
foo &.+ bar |
They all seem somewhat confusing to me, especially the comparison ops. Generally, I find it weird you'd care about a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Recently, I came across this:
Which was equal parts very cool and startling.
So I wanted to get community feedback on whether or not it was too obscure to be good style. We can add our findings to the style guide, since there is no guidance on it yet
The text was updated successfully, but these errors were encountered: