4 ms·
My questions I ask myself every time to keep indentation to a minimum: - Is there a way to use an early return? (In your case early return if == null) - How ca
by weitzj 10y ago
My questions I ask myself every time to keep indentation to a minimum:
- Is there a way to use an early return? (In your case early return if == null)
- How can I get around using an `else` ?
And I am happy this works so well.
Of course there are sometimes if/elseif constructs but exclusive if/else is rare.