Either one works. I prefer the second though, but ...
# announcements
k
Either one works. I prefer the second though, but it could also be context dependent
j
kingsley: there’s not like something in the standard lib that assigns a value only if it’s null ?
k
Isn't that what the elvis operator is for? Or do you mean STD lib functions, like
takeIf
and
takeUnless
?
j
The elvis operator is probably good enough, takeIf and takeUnless seems like they make it more complicated than it needs to be .
k
💯