you are viewing a single comment's thread
view the rest of the comments
[–] 9 points 2 years ago (1 child)

I'm fine with non-braced blocks, but they must always be on the same line as the parent statement (e.g. if (a != null) return a) to visually distinguish them. (inb4 argument about long conditions: they'd usually be spread out over several lines, and the statement would go on the closing parenthese (which is on a line by itself when split over multiple lines))

  • source
  • parent
  • hideshow 1 child comment