Guard with return Types #607
Jean-Paul76
started this conversation in
Ideas
Replies: 0 comments 1 reply
-
Apologies, just found the answer here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the reason all the Guard methods were written with a void return type?
It's quite possible to have a case where one would want to check that a parameter has a value assigned, while also assigning it to a new variable.
E.g.
Beta Was this translation helpful? Give feedback.
All reactions