Article

From:
To:
m. Th.
Subject:
Re: Delphi Project X Cross GUI
Newsgroup:
embarcadero.public.delphi.non-technical

Re: Delphi Project X Cross GUI

m. Th. explained on 2/19/2010 :
> Brad White wrote:
>> m. Th. formulated on Thursday :
>>>  We really need 
>>> an 'using' keyword. Of course, imho.
>>> 
>> What in the world for??
>> 
>> Whether you mean the VB or the C# incarnation,
>> Delphi already has that.
>> 
>> IMHO, the C# 'using' was put in place to make
>> up for the lack in functionality that Delphi
>> already had.
>> 
>> HTH,
>> Brad.
>
> there is another thing 
> which wasn't touched: code readability, code quality.
>
> Also, by using 'using' your intent is more clearer (to use locally a 
> (usually) short-lived with auto-managed lifetime object) whereas 'try' 
> has a much more general meaning.
>
If I understand your point, 'using' would extend lifetime
management to objects without interfaces, whereas interfaces
could use it but wouldn't need it.

And you think that would make the code more readable.
I'm open to being persuaded, but the only example I've seen was Allen's. While he did fine job demonstrating some very cool things that you could do with generics and an anonymous procedure, it made the code much less readable, IMHO.
Do you have an example where it would increase redability or quality?
Thanks, Brad.
FYI: Click here to see how many newsgroups are indexed
 
 
Originally created by
Tamarack Associates
Mon, 25 Nov 2024 11:41:08 UTC
Copyright © 2009-2024
HREF Tools Corp.