3 ms·
I agree, I’m dreading the question mark in my codebase. Everyone is just going to start throwing it everywhere and you’ll never be able to reason about what exi
by erikpukinskis 7y ago
I agree, I’m dreading the question mark in my codebase. Everyone is just going to start throwing it everywhere and you’ll never be able to reason about what exists and what doesn’t.
If something is null or undefined, you should deal with it in one place, the correct place. And downstream code should be able to assume all data exists.