Boost logo

Boost :

Subject: Re: [boost] [Boost.Breakable] Any interest in a Boost Breakablelibrary?
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2009-09-06 17:05:19


Pierre Morcello wrote:
> Anyway, could you be more precise concerning the overhaul?
>
Simply put, the fact that you often have the situation where you have an
otherwise regular block of code, and you suddenly want to jump to the
end of it, suggests that you're writing poorly structured code. Why
can't you use a proper if-statement for this construct? Why not use a
function with early returns? You say that your macro makes the code more
readable, but what probably would make it even more readable would be
restructuring it.

Sebastian


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk