Short Closures 2.0

Read the RFC
98
368 yes
65 no

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.

Click the bar to cast your vote!
85%
15%
1

Always disliked the use of use.

Share:
yassine avatar
yassine
voted yes
1

It helps me to write clear readable code

Share:
bob avatar
bob
voted yes
1

why not? other languages have this.

Share:
rastusik avatar
rastusik
voted yes
1

Please could you provide an example?

Share:
ranvir avatar
ranvir
voted no
1

Improves code clarity via succinctness

Share:
andy avatar
andy
voted yes
1

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.

Share:
william avatar
william
voted no
1

Why not, less code = better

Share:
ilya avatar
ilya
voted yes
1

It’s elegant and the next step towards the evolution of the language.

Share:
eduardo avatar
eduardo
voted yes
RSS Feed Contribute Watch on YouTube Our License
© 2024 RFC Vote. This project is open source. Contribute and collaborate with us!