Import concerns revisited

John Reimer John_member at pathlink.com
Sun Jul 9 12:15:29 PDT 2006


In article <e8rhud$1cca$1 at digitaldaemon.com>, Deewiant says...
>
>John Reimer wrote:
>> Also, for selective import, I think using "from" instead of "with" looks much
>> better.
>> 
>
>"from" is a quite common variable name though, so introducing it as a keyword
>would probably break a lot of code.
>


It is?  I don't see "from" very often.  Seems like an unusual name for a
variable.  Saying it will break "a lot" of code seems like an exaggeration.


>For the same reason I suggested "in" instead of "as", even though the meaning
>may not be quite as obvious.


"in" seems inappropriate in this situation.  "as" perfectly correlates to a
renaming or aliasing action.  "in" is confusing and looks more like an action on
a set.

-JJR





More information about the Digitalmars-d mailing list