Comment #0 by bearophile_hugs — 2010-08-23T17:36:17Z
There are some Phobos modules that, for different reasons, I'd like to see renamed:
std.stdio => std.io (commonly used, shorter, remove useless duplication of std).
std.bitmanip => std.bits (because bitmanip is a not nice abbreviation).
std.cover => std.coverage (not commonly used, to remember its purpose better).
std.regex/std.regexp => std.re (is enough, as in Python)
std.traits => std.meta
Comment #1 by andrej.mitrovich — 2010-08-23T18:02:32Z
> std.stdio => std.io (commonly used, shorter, remove useless duplication of
> std).
Although I agree, this would invalidate pretty much all of the examples in TDPL (not to mention blow up the errata). If it were renamed, it would be good to introduce an alias to std.io in one way or another.
> std.regex/std.regexp => std.re (is enough, as in Python)
std.regex is fine imo. But why are there two modules?
> std.traits => std.meta
This is voted here: http://d.puremagic.com/issues/show_bug.cgi?id=3702
Comment #2 by bearophile_hugs — 2010-08-23T18:10:39Z
> Although I agree, this would invalidate pretty much all of the examples in TDPL
I think Andrei agrees with me about this change. I think Walter doesn't agree. I have written this bug report to have a place where to focus this (vague) discussion, regardless the final name decisions.
Until a book on Phobos is done (and maybe Andrei is writing it) Phobos is more free to change.
> But why are there two modules?
I think one of them is deprecated and will be removed, hopefully soon.
Comment #3 by repeatedly — 2010-08-23T20:48:09Z
(In reply to comment #1)
>
> > std.regex/std.regexp => std.re (is enough, as in Python)
>
> std.regex is fine imo. But why are there two modules?
>
std.regexp is old implementation(as bearophile says, this module is deprecated). std.regex is Range-based implementation by Andrei.
See also:
http://lists.puremagic.com/pipermail/digitalmars-d/2009-February/050338.html
Comment #4 by ah08010-d — 2010-09-24T08:36:58Z
std.stdio -> std.io : I disagree. I know what "io" means, and stdio is the opposite of it. There is an <io.h> and a <stdio.h> and they are different.
std.bitmanip -> .bits: Ambivalent. Shorter is not better, but there is a bunch of stuff in this file - bitfields, bitwise access to floats, bit vectors. Bits is a "truer" name than bitmanip, in this case, but it still isn't a very good name. The file probably needs to be split up.
std.cover -> .coverage: strongly agree.
std.regex -> .re : disagree. Regex is more searchable than "re", and a little more newbie-friendly.
std.traits -> .meta: This is another case where a bunch of stuff needs to be reorganized. There's a lot type-related stuff that should maybe get re-shuffled, either together or apart.
Comment #5 by bearophile_hugs — 2010-09-24T09:46:14Z