Import improvement
bearophile
bearophileHUGS at lycos.com
Mon Oct 15 07:00:33 PDT 2012
deadalnix:
> I don't think import should make the difference between
> packages/modules and module content.
This is acceptable only if then it imports the module names only.
It means that later you must write "stdio.writeln()".
> I'm against introducing more new syntax to import. import is
> already a complex beast.
The suggested syntax "import std.(stdio, xml, algorithm);" is
probably sub-optimal, and maybe better solutions exist. But in
most cases more syntax is way better than foggy/messy semantics.
Bye,
bearophile
More information about the Digitalmars-d
mailing list