Return expression #4693
Answered
by
verbedr
verbedr
asked this question in
Language Ideas
Return expression
#4693
-
I'm not sure if this hasn't been proposed and dismissed already so forgive me if it was. I would like the same functionality as the throw expression but then instead for the return statement. This would come in handy in controller actions like here. Where instead of an exception you would like to return a business failure of some kind. So the current line is
And with the new feature it would look like
Thanks for considering. |
Beta Was this translation helpful? Give feedback.
Answered by
verbedr
Apr 25, 2021
Replies: 1 comment
-
Sorry have to look beter next time. #867 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
verbedr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry have to look beter next time. #867