Re: Expression-local variables and 'let'

Daniel Bonniot <[email protected]>
Newsgroups gmane.comp.lang.nice.general
Message-ID <[email protected]>
Isaac Gouy wrote:

>>Do you think
>>  val s = ...;
>>does not read well? 
>>    
>>
>
>"let" is a command, it's active and direct - "let this be true!".
>  
>
Agreed. Unfortunately, that's also why it does not seem right in the 
middle of an expression.

>"val" is passive (as is "var") - declaring a variable rather than
>binding a value.
>  
>
Cannot we consider that 'val' does not declare a variable: it gives a 
name to a value?

'val' having the same status as 'var' also has the advantage of consistency.

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.