>It's a matter of opinion as to which is more readable.
True.
>Over nesting also makes things very hard to read and thus
>difficult to maintain, defeating HLL too. I've seen this kinda junk ...
Type: Posts; User: Shiro
>It's a matter of opinion as to which is more readable.
True.
>Over nesting also makes things very hard to read and thus
>difficult to maintain, defeating HLL too. I've seen this kinda junk ...
>the continue version of this code is clearer and makes more
>sense than your version, simple as that.
Well, that's your opinion. Mine is different, simple as that.
Take a look at to following to code-fragments.
while (....)
{
if (....)
{
....
}
Saw these examples, these doesn't show at all why to use continue.
Can be replaced by
while (fgets(buf, sizeof(buf), fp) != NULL)
{
In my opinion, it is usually better to avoid such statements like continue or goto. Avoiding these statements leads in general to more structured code and forces you to design a structured algorithm...