Re: Expression-local variables and 'let'

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

>>> Agreed. Unfortunately, that's also why it does not seem right in the 
>>> middle of an expression.
>>
>> We can go around and around.  
>
> Seems so...

Right, it's hard to find the perfect solution. I would not want to 
release this feature before we feel confident that we found the right 
syntax. On the other hand, it's been a long time since 0.9.5, and there 
has been many improvements:
  * new features, including custom constructors
  * usability improvements (correct file and line numbers in stack traces)
  * niceunit tool
  * performance improvements in the generated code (arrays used as lists)
  * important bugfixes

So what I propose is to release 0.9.6 real soon now. It will also 
incorporate the implementation of expression-local variables, but we 
only document the explicitely typed version. It has 'let' and 'var' too, 
but use that at your own risk ('var' seems like it's going to stay, though).

Comments?

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.