Skip to content

return statements #3

Open
Open
@ProfessorTom

Description

@ProfessorTom

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions