Re: Expression-local variables and 'let'

Isaac Gouy <[email protected]> Fri, 20 Feb 2004 08:09:47 -0800 (PST)
Newsgroups gmane.comp.lang.nice.general
Message-ID <[email protected]>
> After all, what matters is the abstract syntax. Tools should be able
> to understand and present you with the concrete syntax you personally
> feel more comfortable with.

Isn't language design more interesting than that?
Less about preferences and comfort levels, more about providing
structures that buffer against slips and mistakes.

Isn't part of what Nice is about safety?
IIRC one of the unsafe aspects of imperative languages is that it isn't
clear when we've changed the state - so we've had a whole slew of
single assignment languages.

What was the objection to making single-assignment default?
   myvalue = 41;
   myvalue = 42; // illegal reassignent
   var myvar = 24;
   myvar = 24;

   int myvalue = 41;
   myvalue = 42; // illegal reassignent
   var int myvar = 24;
   myvar = 24;

(Would that finesse the let/val conversion?)



__________________________________
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