Arbitrary abbreviations in phobos considered ridiculous
Steven Schveighoffer
schveiguy at yahoo.com
Sat Mar 10 07:49:08 PST 2012
On Saturday, 10 March 2012 at 04:56:13 UTC, Andrei Alexandrescu
wrote:
>
> Yah, I'm a bit "ehm" about the sudden recommendation to use
> named import, too. However, I've been "ehm" about similar
> things in the past and came to figure that some things are just
> useful idioms in the forming (e.g. returning locally-defined
> structs).
>
> I find "import log = std.log" better and using the language
> more naturally than the alternative - a struct/class in
> conjunction with the "stuttering" convention std.log.log.
There are other solutions, such as naming the functions something
less common. And there's always selective import with renaming.
Who knows, it's hard to predict what the actual effect will be.
-Steve
More information about the Digitalmars-d
mailing list