Skip to content

as keyword for reffing the value before moving it into the function #75

Description

@TheLazyCat00

// common example, doesnt need helpers like getElementById
Void addDOMChild(this Dom, element Element) mut { ... }

Void main() {
...
dom!addDom(Button{ ... } as enter)
enter!click() // probably mutating
}

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