[fpc-devel] Local variable names and colision with attributes/properties names
Marcos Douglas
md at delfire.net
Thu Sep 27 19:12:40 CEST 2012
On Thu, Sep 27, 2012 at 1:58 PM, Graeme Geldenhuys
<graeme at geldenhuys.co.uk> wrote:
> On 2012-09-27 17:52, Marcos Douglas wrote:
>>
>> I agree that is much simpler... but why nobody, in another language,
>> do the same? Does not worth it? I do not know.
>
> Well, other languages have there own quirks like case sensitive
> identifiers. Thank God, Object Pascal doesn't have that.
>
> Just imagine.
>
> var
> MyName: string;
> MYNAME: string;
> MYName: string;
> myName: string;
> myname: string;
> begin
> ...
> end;
>
> :-D
Ok.
But, even in Pascal, if you have the same variable written in many
styles you can have confusion too.
Marcos Douglas
More information about the fpc-devel
mailing list