www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4718] New: Few Phobos modules renames

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4718

           Summary: Few Phobos modules renames
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc



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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 23 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4718


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich gmail.com



18:02:32 PDT ---
 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 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 23 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4718




 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. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 23 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4718


Masahiro Nakagawa <repeatedly gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |repeatedly gmail.com



20:48:09 PDT ---


 
 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 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 23 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4718


Austin Hastings <ah08010-d yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ah08010-d yahoo.com



PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 24 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4718




See also this post by L. T. Kyllingstad, "Phobos has way too many modules" :
http://article.gmane.org/gmane.comp.lang.d.phobos/2472

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 24 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4718




KennyTM~:

 But std.cover no longer exists in D2.
-- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 30 2011