It’s a shorthand for writing this:
variable = if (input != null) input else default
This is equivalent:
variable = input ?: default
It’s a shorthand for writing this:
variable = if (input != null) input else default
This is equivalent:
variable = input ?: default
It’s a shorthand for writing this:
variable = if (input != null) input else default
This is equivalent:
variable = input ?: default
The answers confusing it with the ternary operator are wrong.
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.
To make it more specific I guess, what’s the problem with that? It’s like having a “people living on boats” and “people with no long term address”. You could include the former in the latter, but then you are just conveying less information.
No, not nice at all. I’m answering your question on why he doesn’t ban Israeli contributors, not deliberating on the niceness of anyone in particular.
I completely agree he was unprofessional about it and should have handled it better. It was his choice in how he communicated it, and I think he failed on that point. Having said that, it was not his choice to do it, and I’m sure he will undue it when it’s legally possible. Hopefully using better judgement on his choice of words then.
Because he’s not making any political, moral, or personal decisions, and only follows the law he is forced to.
When the law forces him to sanction Israel, he will do so, and when the law stops forcing him to sanction Russia, he will stop doing so.
Usually uprooting your life and moving to another country implies a job change. At least that’s how I read the comment.
Probably. Extrinsic vs intrinsic motivation.
I spend hours toiling at work, then I finish work and switch to my hobby project, on the same desk/peripherals (KVM switch), same IDE and same tech stack, and work on it full of energy and finding it fun.
I have no clue why this works for me.
Neither do I, which is why I would love evidence to confirm my suspicions, so I can show it to others.
But I also try not to make claims that are merely suspicious, however likely.
I agree, but the argument here is “why won’t they let you upload more data if they make money off of it”. My point is that it doesn’t apply here, because uploaded files is not the data that can make them money.
Any proof, or just tinfoil?
I already use a different app for voice chat, and never used Discord’s voice chat feature.
Discord is a modern alternative to IRC, Slack, or a more fully featured version of Matrix. I never considered it for the voice chat feature.
People always bring up voice chat alternatives, which don’t replace Discord at all, because voice chat is a tiny unimportant feature of Discord that I wouldn’t notice if they removed.
Source that they make money off of uploaded files?
It’s not like getting Ublock Origin from the official website instead of the Chrome Web Store is some kind of a problem.
Ok, well “broken” sounded like, you know, that things don’t work.
They didn’t:
They stopped using the codenames in marketing, but they are still there.
What’s broken about it? I use Kubuntu and everything is working fine.
It’s in Kotlin and some other languages. C# has it but there it’s actually
A ?? B
.