Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

null-coalescing-operator

PHP Elvis operator vs null coalescing operator

by IT Nursery

When your first argument is null, they’re basically the same except that the null coalescing won’t output an E_NOTICE when you have an … Read more

Tags conditional-operator, elvis-operator, null-coalescing-operator, php, php-7

?? Coalesce for empty string?

by IT Nursery

Something I find myself doing more and more is checking a string for empty (as in “” or null) and a conditional operator. … Read more

Tags c, coalesce, null-coalescing-operator, string

Is there a VB.NET equivalent for C#’s ‘??’ operator?

by IT Nursery

Is there a VB.NET equivalent for C#’s ?? operator? Best Answer 6

Tags null-coalescing-operator, operators, vb.net

is there a Java equivalent to null coalescing operator (??) in C#? [duplicate]

by IT Nursery

This question already has answers here: How to get the first non-null value in Java? (13 answers) Closed 4 years ago. The community … Read more

Tags c, equivalent, java, null-coalescing-operator

Is there a Python equivalent of the C# null-coalescing operator?

by IT Nursery

In C# there’s a null-coalescing operator (written as ??) that allows for easy (short) null checking during assignment: string s = null; var … Read more

Tags null-coalescing-operator, python

PHP ternary operator vs null coalescing operator

by IT Nursery

Can someone explain the differences between ternary operator shorthand (?:) and null coalescing operator (??) in PHP? When do they behave differently and … Read more

Tags conditional-operator, null-coalescing-operator, php, php-7

Curious null-coalescing operator custom implicit conversion behaviour

by IT Nursery

Note: this appears to have been fixed in Roslyn This question arose when writing my answer to this one, which talks about the … Read more

Tags c, null-coalescing-operator

Is there a “null coalescing” operator in JavaScript?

by IT Nursery

Is there a null coalescing operator in Javascript? For example, in C#, I can do this: String someString = null; var whatIWant = … Read more

Tags javascript, null-coalescing, null-coalescing-operator, operators

What do two question marks together mean in C#?

by IT Nursery

Ran across this line of code: FormsAuth = formsAuth ?? new FormsAuthenticationWrapper(); What do the two question marks mean, is it some kind … Read more

Tags c, null-coalescing-operator

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery
x
x