Syntax: replace syntax for fn(x) {} with x -> { } #274
Closed
matiwinnetou
started this conversation in
Syntax suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is your idea? Provide a use case.
Both java, scala, javascript and typescript use x -> or x => syntax for lambdas.
Why is it a good idea?
There are many developers of above langs
What is the current alternative and why is it not good enough?
Current syntax is ok but we could make developers learn Aiken potentially faster if we adopted alternative syntax.
It is all about principle of least surprise and aiming for typical languages unless there are good reasons against this.
Beta Was this translation helpful? Give feedback.
All reactions