?? Null Coalescing Operator --> What does coalescing mean?

前端 未结 7 1983
情歌与酒
情歌与酒 2020-12-01 20:16

I\'m tempted to lie and say that English is my second language, but the truth is that I just have no idea what \'Coalescing\' means. I know what ?? \'does\' in

相关标签:
7条回答
  • 2020-12-01 21:17

    Coalescing is when you have more than one item and then you end up with exactly one—either by joining the items together or by choosing a single item from the group. In the case of the ?? operator, you're choosing the first non-null value of the pair of values.

    0 讨论(0)
提交回复
热议问题