-
Notifications
You must be signed in to change notification settings - Fork 11
return statements #3
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
Comments
Far easier solution, I think, is to return all undeleted variables in reverse (compared to declaration) order. |
Better still, have only a " |
but it messes with the |
Using |
After watching the Skills Matter video a non-trivial number of times, I realized that returning values from functions was not addressed.
return
is too easy.I propose that a system similar to INTERCAL's politeness be used for returning values from functions vs. Scala's implied returns (although, implied returns means the return semantics are invisible–a highly desirable feature for BS.). To wit: the key phrase
please give back
in lieu ofreturn
but this must be balanced with the key phrasetake that
ordo the needful
in lieu of return if the compiler detects too much politeness which will be determined by a PRNG-generated percent of correct politeness each time the compiler is invoked, thus causing additional source edits per compile.The text was updated successfully, but these errors were encountered: