πŸ’¬ Reply by Cube6392

2024-11-18 πŸ”„ programmerhumor ┃ RE: QuazarOmega

been programming since 2008. the fuck is an elvis operator?

Cube6392

QuazarOmega

πŸ”„ programmerhumor

πŸ’¬ Replies

2024-11-20 dev_null ┃ edited

It’s a shorthand for writing this:
[…]
variable = if (input != null) input else default
[…]

2024-11-18 jerkface

Been programming since the 80s, ditto.

2024-11-18 luciferofastora ┃ 1πŸ’¬

Ternary if?then:else

────

View parent post

View first post in thread

View thread

────

πŸ“‘ Local feed

πŸ•οΈ Communities

πŸ”₯ Hashtags

πŸ”Ž Search posts

πŸ”‘ Sign in

πŸ“Š Status

πŸ›Ÿ Help