Re: Expression-local variables and 'let'
Isaac Gouy <[email protected]>
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <[email protected]> |
> >"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. We can go around and around. Seems to me that we're optimizing for the (wild assed guess) 20% of user-defined statements, rather than ordinary assignments. And I'd side with the Ada designers for readability over concision - readability helps me write correct code. On another topic: >>>What's wrong with alike? >>It's an adjective, in Nice we use it as a pronoun. > We use it as a type. Note that Cloneable, Serializable, etc, are also > adjectives used as types. Cloneable and Serializable are not of our making, they are gifts from Java used as nouns. And they make some sort of sense, implementors of Cloneable are cloneable. IIRC 'alike' corresponds to the type in the same way that 'this' corresponds to the instance of that type - 'alike' is 'selftype' or 'thistype'. I understand Brian's discomfort with 'alike'. OTOH we say that these are multimethods and there is no privileged method receiver; OTOH we don't have a way to express 'alike' when the method is outside a class. __________________________________ 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