Re: Expression-local variables and 'let'
Isaac Gouy <[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.
My guess is that most-of-the-people most-of-the-time will use var, even
when they don't need var. When we wan't something to *not be* var it's
good that the keyword is very different from var. (A single letter
difference is just an invitation to make a slip.)
> It was also argued that 'val' has a more straightforward meaning that
> 'let', especially to non-native speakers, while 'let' might remind
> people about BASIC, can you imagine that !?! ;-)
Wasn't OCaml inspired by BASIC! ;-)
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
-------------------------------------------------------
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