I could see a reason being legibility, but also fuck teammates that don’t communicate.
17
Anonymous8w
😂😂
6
Anonymous8w
Wouldn’t rand # & mod combo compile faster than nextBoolean?
6
Anonymous8w
Crash out
5
Anonymous7w
Something I like doing is splitting the ternary operator over multiple lines. Best of both worlds. Like this:
return random.nextBoolean()
? a
: b;
5
Anonymous8w
was there any justification?
3
Anonymous8w
Didn’t even omit the else block 💔💔
3
Anonymous8w
His is more quickly understandable
1
Anonymous8w
The first line isn’t even that hard to understand and is a lot cleaner. Your teammate is crazy
1
Anonymous#28w
He didn’t see it he said
9
Anonymous#68w
I guess but who’s doesn’t know how to read ternary operators ?
2
Anonymous#68w
The one liner is way quicker to read. I don’t think we should stop using ternary operators just because some people are too lazy to understand what they mean even though it’s ridiculously simple