Afficher un message
Vieux 19/10/2007, 12h46   #4
Richard
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Goto still considered ful

rlb@hoekstra-uitgeverij.nl (Richard Bos) writes:

> Richard <rgrdev@gmail.com> wrote:
>
>> rlb@hoekstra-uitgeverij.nl (Richard Bos) writes:
>>
>> > Peter Pichler <usenet@pichler.co.uk> wrote:
>> >
>> >> Ed Jensen wrote:
>> >>
>> >> > done:
>> >> > if (sf)
>> >> > fclose(sf);
>> >> > if (df)
>> >> > fclose(df);
>> >>
>> >> As you wish. I do not like this approach because it requires all
>> >> declarations at the top of the function, which IMO is almost as bad
>> >> as making them global.
>> >
>> > Beg to differ. Beg to differ very greatly, in fact. Declarations
>> > scattered through the code hailshot-wise are a great way of ensuring
>> > that you'll have to hunt for one sooner or later.

>>
>> Not with any half decent editor.

>
> Ah, yes, I forgot. Desk checks have gone out of fashion. Because they
> required that you were, you know, competent. Can't be having that.
>
>> Besides, locally declared variables don't need to be hunted for.
>> They are there where you need them.

>
> Your confidence in your fellow programmer is endearing, but ill
> deserved.


Sorry? I am advocating things to improve things. I am not showing
confidence in anything.

>
> Richard

  Réponse avec citation
 
Page generated in 0,05289 seconds with 9 queries