πŸ’¬ Reply by dev_null

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

It’s a shorthand for writing this:
variable = if (input != null) input else default
This is equivalent:
variable = input ?: default

dev_null

AVincentInSpace

πŸ”„ programmerhumor

πŸ’¬ Replies

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

Huh. Neat feature. That’s in C# I assume?

────

View parent post

View first post in thread

────

πŸ“‘ Local feed

πŸ•οΈ Communities

πŸ”₯ Hashtags

πŸ”Ž Search posts

πŸ”‘ Sign in

πŸ“Š Status

πŸ›Ÿ Help