• mozingo@lemmy.world
    link
    fedilink
    English
    arrow-up
    27
    ·
    2 days ago

    I don’t get it. I literally write code that looks like both of these all the time. Null coalescing is cool, and very handy sometimes. In this particular case, I’d probably write it more like the left, since it’s more standard and my coworkers would be more familiar with it, but the right obviously does the same thing and I have no issues reading it.