-
-
Notifications
You must be signed in to change notification settings - Fork 9
Return Statement
IsaacShelton edited this page Mar 21, 2022
·
1 revision
Return statements return a value from a function
return my_value
In order to return a value from a function, the value must be of the same or similar type as the function’s return type
All defer
ed statements will be unwound when reaching a return
statement, just as if all parent scopes are closed