Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.
This repository was archived by the owner on May 4, 2024. It is now read-only.

[inline functions] Allow lambda parameters to be typed #806

Open
@wrwg

Description

@wrwg

Currently the lambda expressions we are using for inline fun are derived from older support of lambdas in the specification language. Those lambdas (|v|e) do not allow for type annotations (|v:t|e). But we need the later since the Move compiler does not always infer the desired types, and annotations are needed. The current workaround is to use |v| { let v : T = v; e }.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions