Skip to content

Variable update expression statements should be extended to allow complex expressions #485

@pschachte

Description

@pschachte

For example

!x * 2
!x + 1

will double x and add 1, but unfortunately, this

!x * 2 + 1

doesn't work. It should do the same thing. An expression e written in a statement context and containing one !v subexpression should be treated as equivalent to ?v = e, with the !v in e replaced by just v.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions