Skip to content

return variable of a function #1621

Closed
Closed
@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


The return variable of the function should be able to be referenced in the function body, like in Visual Basic. It will start off with a value of null, and be possibly changed by the function to return a value, e.g. something like "returnset <expression>;", that is like the return statement, but does not pass back control to calling process. Even better, give the variable a fixed identifier like "_returnvalue" so that expressions or array functions can change the value, e.g. "_returnvalue++;".

Metadata

Metadata

Assignees

Labels

area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).closed-not-plannedClosed as we don't intend to take action on the reported issuetype-enhancementA request for a change that isn't a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions