www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5085] New: std.variant.Algebraic name

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

           Summary: std.variant.Algebraic name
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc



Algebraic data types may be both product types and sum types:

From Wikipedia:
http://en.wikipedia.org/wiki/Algebraic_data_types

 Special cases of algebraic types are product types i.e. tuples and
 records (only one constructor), sum types or tagged unions (many
 constructors with a single argument) and enumerated types (many
 constructors with no arguments). Algebraic types are one kind of
 composite type (i.e. a type formed by combining other types).
So std.typecons.Tuple too is an algebraic data type, it's a product type. The data structure implemented by std.variant.Algebraic is just a special case of algebraic data type, it's a sum type. So it is better if the name of std.variant.Algebraic refers to 'sum type' or a 'tagged union' instead to generic data types. So maybe "taggedUnion" is a more descriptive name of its purposes for programmers of C-like languages. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 20 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5085


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei metalanguage.com
         AssignedTo|nobody puremagic.com        |andrei metalanguage.com


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 09 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5085




PST ---
I don't think there's an action item that can be derived from this. OK to
close?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 26 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5085


bearophile_hugs eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED




 I don't think there's an action item that can be derived from this. OK to
 close?
Closed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 26 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5085


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|FIXED                       |WORKSFORME



10:50:18 PST ---
No associated pull -> WORKSFORME.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 26 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5085





 No associated pull -> WORKSFORME.
Isn't WONTFIX more correct for this situation? :-) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 26 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5085


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WORKSFORME                  |WONTFIX



10:52:02 PST ---


 No associated pull -> WORKSFORME.
Isn't WONTFIX more correct for this situation? :-)
Sure thing. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 26 2013