• Metype @lemmy.world
    link
    fedilink
    English
    arrow-up
    16
    ·
    10 months ago

    Putting the opening curly brace of a code block on the same line that defines the conditions the code block will run under is bonkers?

    • doctorcrimson
      link
      fedilink
      arrow-up
      4
      ·
      10 months ago

      If we’re judging purely on readability then I think Allman probably has the edge, here. You can see at a glance where the encasement starts or ends in a vertical column on the far left. Of course, that’s a moot point if the programmer’s color coding is set up to where it is obvious.