• atheken@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    I agree with the need, but not your rationale, I’m in the “always curly braces” camp for two reasons:

    • when a second line gets added in a condition block, the braces might not get added, a bug.
    • one less decision to make while coding. Anything that removes trivial decision-making can speed up authoring and reading code.