styleguides icon indicating copy to clipboard operation
styleguides copied to clipboard

docs: Remove IF block in CHECK vs. RETURN

Open mauriciolauffer opened this issue 2 years ago • 2 comments

It's not clean, it may not be clear, it adds unnecessary depth. If this a clean code guide, the suggested IF block has no place here as it's worse and dirtier than the other options.

mauriciolauffer avatar May 21 '22 23:05 mauriciolauffer

PS: thanks to Jelena for starting the discussion: https://twitter.com/JelenaAtLarge/status/1527775392790204416

mauriciolauffer avatar May 21 '22 23:05 mauriciolauffer

#276

larshp avatar May 22 '22 15:05 larshp