MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/teqb37/static_bool_iscrazymurderingrobot_false/i0rrg8p/
r/ProgrammerHumor • u/speckz • Mar 15 '22
257 comments sorted by
View all comments
Show parent comment
17
[removed] — view removed comment
21 u/Do_you_smell_that_ Mar 15 '22 🤮 11 u/32436861696e7a Mar 15 '22 Not nearly enterprise enough. return Boolean.TryParse(bool + 1 > 1, out Boolean temp) ? temp == true ? true : temp == false ? false : throw new Exception(“test 1”) : throw new Exception(“test b”); 8 u/production-values Mar 15 '22 without braces you return temp before the elses can ever run! Then even if grouped properly, your elses are superfluous because of returns above. But the math on bools ... chef's kiss -1 u/nelusbelus Mar 15 '22 That doesn't even work because you don't have curlies, the else if isn't matched 1 u/Blingbike97 Mar 16 '22 Why not just return bool if bool is not a protected keyword.
21
🤮
11
Not nearly enterprise enough. return Boolean.TryParse(bool + 1 > 1, out Boolean temp) ? temp == true ? true : temp == false ? false : throw new Exception(“test 1”) : throw new Exception(“test b”);
8
without braces you return temp before the elses can ever run! Then even if grouped properly, your elses are superfluous because of returns above. But the math on bools ... chef's kiss
-1
That doesn't even work because you don't have curlies, the else if isn't matched
1
Why not just return bool if bool is not a protected keyword.
return bool
View all comments
Show parent comment
17
u/[deleted] Mar 15 '22 edited Mar 15 '22
[removed] — view removed comment