LLVM Coding Standards

Klaim - Joël Lamotte mjklaim at gmail.com
Tue Apr 12 07:53:43 PDT 2011


Hi,

about early breaks/returns, it seems that might answer to a similar question
is widely aproved, some maybe it's of interest :
http://programmers.stackexchange.com/questions/58237/are-break-and-continue-bad-programming-practices/58253#58253

(about early breaks/return/continue)
"When used at the start of a block, as first checks made, they act like
preconditions, so it's good.

When used in the middle of the block, with some code around, they act like
hidden traps, so it's bad."

The other answers and commetns are interesting to read too.

Anyway I think it's offtopic and such discussion could be done on another
more appropriate mailing list or website.

Klaim - Joël Lamotte.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110412/1e5d5f37/attachment.html>


More information about the Digitalmars-d mailing list