Skip to content

Assignment to arguments? #79

Description

@MarcellPerger1

Do we allow assigning to arguments like:

def f(val v, bool b) {
  v = 7;  // Could be allowed though requires syntax sugar (just new var)
  b = false;  // Not allowed for now, requires full big sugar for bool-vars
}

As scratch doesn't support it natively, would need syntax sugar, see #40.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-TypeCheckingArea: Type checking/name resolutionS-Decision-NeededStatus: A decision needs to be made (e.g. how to implement it, refactor or not)T-enhancementImprovement to an existing feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions