Skip to content
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

Safe navigation operator? #5

Open
johntrandall opened this issue May 5, 2017 · 2 comments
Open

Safe navigation operator? #5

johntrandall opened this issue May 5, 2017 · 2 comments

Comments

@johntrandall
Copy link
Contributor

to &.method(args)
or to try(:method, args)

that is the question.

@johntrandall
Copy link
Contributor Author

TIL that
&. is ruby (2.3.0+)
.try is Active Support

@srt32
Copy link
Contributor

srt32 commented May 5, 2017

I recommend we eschew both of these options and instead strive to find the source of the nils

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants