3 ms·
Which problem or usecase would null-coalescing/safe-navigation operators solve, which are not already solved with conditional expression or walrus-operator?
by PurpleRamen 3y ago
Which problem or usecase would null-coalescing/safe-navigation operators solve, which are not already solved with conditional expression or walrus-operator?
- Kwpolska 3y agoYou can certainly replace `a?.b?.c` with some `if`s. But it gets tedious and unreadable fast.