How the right associative of null coalescing operator behaves?

后端 未结 4 1494
Happy的楠姐
Happy的楠姐 2020-12-03 01:20

null coalescing operator is right associative, which means an expression of the form

first ?? second ??third

is eva

4条回答
  •  误落风尘
    2020-12-03 01:41

    I can't see how it matters, both:

    (a ?? b) ?? c
    

    and

    a ?? (b ?? c)
    

    have the same result!

提交回复
热议问题