http://qs321.pair.com?node_id=409233


in reply to Re: empty 'else' block
in thread empty 'else' block

I'm not usually a fan of putting semantics in comments, but here I think I might make an exception for:

if(&predicate(...)) { &foo(...); } else { # do nothing }

It's a bit more explicit to some poor maintenance programmer than a lone, apparently useless, semi. Of course, if lone, apparently useless, semis are a coding convention for "do nothing" where you hack, it's okay. :-)

--
Yours in pedantry,
F o x t r o t U n i f o r m

"Anything you put in comments is not tested and easily goes out of date." -- tye