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 calls #1

Open
Miha-x64 opened this issue Nov 9, 2021 · 1 comment
Open

Safe calls #1

Miha-x64 opened this issue Nov 9, 2021 · 1 comment

Comments

@Miha-x64
Copy link

Miha-x64 commented Nov 9, 2021

Nice idea but what about another scream when using ?.? Thoughtless use of it is even more unsafe and leads to unintended behavior like empty screens or performing no action which was expected by users. Such cases are hard to report and track since no crash occurs.

@riegersan
Copy link
Contributor

Nice idea but what about another scream when using ?.? Thoughtless use of it is even more unsafe and leads to unintended behavior like empty screens or performing no action which was expected by users. Such cases are hard to report and track since no crash occurs.

Sorry, but why is ?. unsafe?
?. performs a safe call on an object only when it is not null.

I did't see a problem with that.

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