8000 Lambdas should use fat arrows · Issue #763 · evhub/coconut · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Lambdas should use fat arrows #763
Closed
@evhub

Description

@evhub

Coconut's x -> x lambda syntax was created before Python introduced the use of -> for return type annotations. Now that Python uses -> for return type annotations, using -> for lambdas is confusing--and even creates some syntactic problems, e.g. supporting return type annotations for statement lambdas.

Though we'll probably never remove support for -> lambdas, since they've been a part of the language for so long, it might make sense to deprecate them and try to move over to => lambdas instead.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0