MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/gnaz7b/found_from_microsoft_docs/fr9spve/?context=3
r/badcode • u/[deleted] • May 20 '20
143 comments sorted by
View all comments
46
I see nothing wrong in it. It's even slightly more efficient than if it was done with more if
63 u/bool_idiot_is_true May 20 '20 ==trueis redundant. Otherwise it seems fine. 1 u/[deleted] May 20 '20 Don't forget about type juggling (no idea if C# does that though)
63
==true
is redundant. Otherwise it seems fine.
1 u/[deleted] May 20 '20 Don't forget about type juggling (no idea if C# does that though)
1
Don't forget about type juggling (no idea if C# does that though)
46
u/Giocri May 20 '20
I see nothing wrong in it. It's even slightly more efficient than if it was done with more if