πŸ’¬ Reply by dev_null

2024-11-20 πŸ”„ programmerhumor ┃ edited ┃ RE: AVincentInSpace

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.

dev_null

AVincentInSpace

πŸ”„ programmerhumor

πŸ’¬ Replies

2024-11-21 AVincentInSpace ┃ 1πŸ’¬

The second one isn’t valid syntax in any programming language I’m familiar with. What does it do?

────

View parent post

View first post in thread

View thread

────

πŸ“‘ Local feed

πŸ•οΈ Communities

πŸ”₯ Hashtags

πŸ”Ž Search posts

πŸ”‘ Sign in

πŸ“Š Status

πŸ›Ÿ Help