Phobos packages a bit confusing

retard re at tard.com.invalid
Sun Nov 29 13:10:34 PST 2009


Sun, 29 Nov 2009 20:26:07 +0000, dsimcha wrote:

> == Quote from Andrei Alexandrescu (SeeWebsiteForEmail at erdani.org)'s
> article
>> Walter and I discussed quite a few times the possibility of defining
>> std.all that publically imports all of std. My experiments show that a
>> short script importing std.all will compile slower, but not too slow,
>> compared to a script that only import a few modules.
> 
> Vote++.  This would be a nice little convenience when writing small
> scripts in D, which I actually do quite often because I already know
> where basic APIs like file I/O are in Phobos and I don't want to learn
> another API just for small scripts. This goes along with the scaling
> down thing I was talking about a few days ago.  A well-designed language
> and library should be good for both big projects (making complicated
> things possible) and small projects (making things simple).  std.all
> would be a trivial addition that wouldn't clash with anything else and
> would really help Phobos scale down better.

When writing small scripts, I use bpython:

http://www.bpython-interpreter.org/screenshots/

Nicely integrated apidocs.



More information about the Digitalmars-d mailing list