Closed
Description
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.