This RFC proposes a way to have multi-line short closures — closures that don't need explicit use
statements, but can still have multiple lines and a return statement.
I would really love this!
It keeps code so much cleaner, easier to read, and is already intuitive because of how most modern frontend apps are written.
It's not an uncommon syntax. Other languages do this. Could be handy. If you're against it, just write it the long way and/or have your code sniffer reject it. You don't have to use it.
Always disliked the use of use
.
It helps me to write clear readable code
why not? other languages have this.
Please could you provide an example?
Improves code clarity via succinctness
I can't see any need for multi line arrow functions, if that is what we are talking about, because anonymous functions provide that already.
Why not, less code = better
It’s elegant and the next step towards the evolution of the language.
Chain method on newly created objects without parentheses
The "pipe operator" |>
allows you to chain multiple function calls in a more convenient way.