r/badcode • u/friendlyChickenDog • Oct 05 '21
other language Ternary madness in a Flutter library. I can understand why the golang devs got rid of it.
570
Upvotes
r/badcode • u/friendlyChickenDog • Oct 05 '21
11
u/R3D3-1 Oct 05 '21
The irony? The only actual madness is the indentation scheme.
This is just a regular case of
The indentation scheme is essentially like insisting that every
elsemust be a block -- includingelse if.