Re: Expression-local variables and 'let'

Isaac Gouy <[email protected]>
Newsgroups gmane.comp.lang.nice.general
Message-ID <[email protected]>
> My plan was to replace it by 'val', because
>   1) let inside an expression hurts my linguistic feelings (Bryn's
> too, from private email)
>   2) we should avoid two keywords for the same concept
> 
> I note that Isaac is worried about var and val being too similar.
> That people object to "overloading" the 'final' keyword.
> 
> It's hard to please everyone. Who will come up with the magic
> solution to please them all? ;-)

Or the alternative approach of upsetting them all equally ;-(

No doubt the differing views have to do with the coding styles being
used. Seems like in Nice by default I use single assignment "let"
throughout the code and then change to an explicit type or var if
needed. 

These imperative usages read well:
   let s = shortName(c.getName);

and as I use this form a lot, giving them up doesn't seem like a great
idea. 

It is a little scary to catch myself writing things like this ;-)
   let s = shortName(c.getName);
   let s' = s + ...

(maybe I should give-up and use a real fp language)










__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools


-------------------------------------------------------
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.