|
On 11-Oct-16 09:32, steve donovan wrote:
On Tue, Oct 11, 2016 at 9:26 AM, Marc Balmer <marc@msys.ch> wrote:As other mentioned, brackets are not needed for one liners, so I leave them out. I generally leave out what is not needed.Ah, but the problem is when they become two liners. It's a potential maintenance problem.
I realized that some three decades ago (the hard way) and I considered braces as mandatory ever since.
Part of the issue is silly code styles that insist that braces must be on their own line. (Puts on flame-retardant hat)
Oh, don't look at my code then ;-) -- Enrico