Skip to content

Allow type ascription on patterns and expressions #10502

Closed
@huonw

Description

@huonw

It'd be nice if

for x: uint in something_generic() {
    more_generics(something_else_generic(x): f64)
}

allowed the programmer to give explicit type hints/annotations to patterns and expressions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemArea: Type systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions