on 6/29/02 3:01 PM, Thomas Tempelmann at listuser at tempel dot org wrote:
> Chris Little wrote:
>
>> I think that having local variables with the same name as properties leads
>> to code that is fragile and could create maintenance problems later.
>
> That's your opinion and your preference. Many others may even agree.
>
> But that's not what Matt criticised!
>
> Matt says: since RB allows doing this, and since there are
> people doing it, RB should be consistently doing it all right,
> including the auto-completion.
>
I know what Matt said but I think that Matt, as the author of an excellent
book (I would say best but I haven't read the other book) on learning/using
RB, is in the unenviable position on having do as he does. So even though
RB's auto-completion should handle this case better, or the compiler should
disallow it, I think that he should really be saying don't do that instead
of saying that this is an idiom that he commonly uses.
Chris
|