Naming conventions for functions in similar modules
Andrej Mitrovic
andrej.mitrovich at gmail.com
Wed Jun 22 10:30:28 PDT 2011
On 6/22/11, Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:
> One improvement would be to relax package lookup such that
> ascii.tolower() is a synonym for std.ascii.tolower. That way everything
> works reasonably nice out of the box.
What would help is if the with statement could be used like an
attribute. Currently you can do this:
static import std.string;
void main()
{
with (std)
{
auto result = string.entab(" ");
}
}
If I could do this:
void main()
{
with (std):
auto result = string.entab(" ");
}
It would maybe be a nice addition. It would also help if I could do it
with multiple modules, ala:
void main()
{
with (std.string, std.stdio):
writeln(entab(" "));
}
More information about the Digitalmars-d
mailing list