Re: Expression-local variables and 'let'

Daniel Bonniot <[email protected]>
Newsgroups gmane.comp.lang.nice.general
Message-ID <[email protected]>
>>However, although 'var' is fine in this 
>>context, 'let' seems very awkward: 
>>  using (let s = new PrintStream(...)) { ... }
>>    
>>
>
>(As a native English speaker) it's not a big deal to see this in
>program text.
>  
>
You are not a purist, then? ;-)

>My guess is that most-of-the-people most-of-the-time will use var, even
>when they don't need var. 
>
What do you base this guess on? I know that's what happens in Java, but 
then the "default" is variable, and you have to take the trouble to 
write 'final' to make it otherwise.

Daniel



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.