coconut icon indicating copy to clipboard operation
coconut copied to clipboard

Return type annotations for statement lambdas

Open evhub opened this issue 3 years ago • 0 comments

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 avatar Jan 02 '23 04:01 evhub