I never heard it called the Elvis operator! Thanks!
40 0 ReplyIt's because if you turn it 90° to the right, it looks like Elvis' hair with two eyes underneath!
24 0 ReplyI saw it the other way, with the question mark as the curl of his lip.
21 0 Reply?:)
2 1 Reply
It was called Elvis back when it was a smiley
3 0 Reply
I don't understand this. Small brained users rise up
15 0 ReplyOn the left you have Elvis Presley, while on the right there's the so-called Elvis operator
13 0 Replybeen programming since 2008. the fuck is an elvis operator?
16 0 Replywhy would you call it anything other than the ternary operator
3 0 Reply
Kotlin user spotted
10 0 Replyphp too
..but we don't talk about php
3 0 Replyphp doesn't exist, php can't hurt you
2 0 Reply
Nobody's assuming Groovy these days then 😂
2 0 ReplyI've been working in Jenkins pipeline for a while now.
Why the fuck is Groovy?
2 0 Reply
(run { this@comment.parent?.apply { this.value === true } } == true) ?: if ((this@comment.value as? Boolean) != true) false else true
2 0 Reply
I will never call this the "Elvis" operator. That's as dumb as dog shit. It's called the ternary operator.
3 0 ReplyI had to go into the comments to find that out. Is this like an old people thing?
2 0 Reply
Same
2 0 Reply