Open
Description
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 of return
but this must be balanced with the key phrasetake that
or do 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.
Metadata
Metadata
Assignees
Labels
No labels