[fpc-pascal] Syntax changes suggestions
Michael Van Canneyt
michael at freepascal.org
Tue Jul 17 12:30:24 CEST 2018
On Tue, 17 Jul 2018, Henry Vermaak wrote:
> On Tue, Jul 17, 2018 at 12:07:10PM +0200, Michael Van Canneyt wrote:
>> >On Tue, Jul 17, 2018 at 11:14:31AM +0200, Michael Van Canneyt wrote:
>> If you need to "reduce the scope of variables", your routines are too long to
>> begin with.
>>
>> If of course you write routines of several hundreds of lines (or thousands),
>> then you probably would need to have such a feature.
>>
>> But I would fire any programmer that writes such code anyway, since it
>> indicates he cannot think structured.
>
> And I'd fire any programmer that doesn't properly scope their variables,
> just as you'd (hopefully) fire a programmer for using global instead of
> function level variables.
Exactly: I do scope them. I make small routines.
Reducing scope to 5 lines in a routine of 20 lines is a waste of time.
Michael.
More information about the fpc-pascal
mailing list