Lukas Vyletel
1 min readAug 3, 2020

--

I guess that depends on the developer. Everyone, who knows that `let {}` has a return value will not be confused by that code snippet. I'm regularly using `.let` for other usecases than just a simple null check and so that piece of code is reasonable to me. Using if/else would add up one more level of nesting and that's not ideal.

--

--

Responses (1)