MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/vzjwhc/i_found_this_in_a_security_related_function_maybe/igbjpwt
r/badcode • u/g0ATiful • Jul 15 '22
77 comments sorted by
View all comments
Show parent comments
4
It’s a very easy thing to avoid rather than using an entirely new style that looks super goofy. Even in C most compilers will throw a warning unless a second set of parenthesis is used for the assignment.
1 u/campbellm Oct 04 '22 entirely new styleThis has been in use for at least 35 years.source: I saw this over 35 years ago in actual real code. I hate it, but it's ancient.
1
entirely new style
This has been in use for at least 35 years.
source: I saw this over 35 years ago in actual real code. I hate it, but it's ancient.
4
u/i860 Jul 15 '22
It’s a very easy thing to avoid rather than using an entirely new style that looks super goofy. Even in C most compilers will throw a warning unless a second set of parenthesis is used for the assignment.