Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return type annotations for statement lambdas #715

Open
evhub opened this issue Jan 2, 2023 · 0 comments
Open

Return type annotations for statement lambdas #715

evhub opened this issue Jan 2, 2023 · 0 comments
Labels

Comments

@evhub
Copy link
Owner

evhub commented Jan 2, 2023

Unfortunately, since -> is used for the lambda itself, we can't also use it for the return type annotation. Thus, instead, we'd be forced to implement something like

f = def (x: int): int -> x

which is somewhat confusing, making this a bit questionable.

@evhub evhub added the feature label Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant