Sleepzy@feddit.it to Programmer Humor · 3 days agoElvisfeddit.itimagemessage-square29fedilinkarrow-up1153arrow-down18
arrow-up1145arrow-down1imageElvisfeddit.itSleepzy@feddit.it to Programmer Humor · 3 days agomessage-square29fedilink
minus-squaredev_nulllinkfedilinkarrow-up1·edit-23 hours agoBecause it’s not one. Ternary operator is A ? B : C, Elvis operator is A ?: B. The same two characters are involved, but both the syntax and effect is different.
Because it’s not one. Ternary operator is A ? B : C, Elvis operator is A ?: B. The same two characters are involved, but both the syntax and effect is different.