For the C# devs: expression body or old school functions?
Survey period: 21 Feb 2022 to 28 Feb 2022
Do you prefer the expression body public override string ToString() => "I am an object";
or the traditional public override string ToString() { return "I am a string"; }
?
I prefer the shortened expression body syntax | 137 | 17.13 | |
I prefer traditional functions | 316 | 39.50 | |
It depends on the situation | 181 | 22.63 | |
I don't care | 89 | 11.13 | |
I'd never heard of expression body definitions | 77 | 9.63 | |
© 2022 The Code Project. All rights reserved.
This email was sent to vutunglampro@gmail.com. To stop receiving The Weekly Newsletter click here.
CodeProject 20 Bay Street, 11th Floor, Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900 Please do not reply directly to this email. It was sent from an unattended mailbox. For correspondence please use webmaster@codeproject.com
Không có nhận xét nào:
Đăng nhận xét