import concerns (was Re: Historical language survey)
Kirk McDonald
kirklin.mcdonald at gmail.com
Sat Jul 8 20:17:33 PDT 2006
Derek Parnell wrote:
> On Sun, 09 Jul 2006 11:59:37 +1000, Kirk McDonald
> <kirklin.mcdonald at gmail.com> wrote:
>
>
>> I posted this proposal earlier, but I like it so much I'll repeat myself:
>>
>> import B with bar;
>> bar(); // unambiguous
>>
>> The point is you can list multiple names from the module without
>> repeating the module name:
>>
>> import MyModule with foo, baz;
>>
>> And "with" is already a keyword.
>
>
> So what? But if you did want to reuse the "with" keyword why not use it
> in the same manner...
>
> with MyModule import foo, baz;
>
>
It makes the grammar simpler to start both with "import," I think. I
also think it reads better. Both work, though. I am not picky, and will
be happy no matter what actual keywords we get for this functionality,
so long as we get it.
--
Kirk McDonald
Pyd: Wrapping Python with D
http://dsource.org/projects/pyd/wiki
More information about the Digitalmars-d
mailing list