[Issue 9065] Please consider adding these std.traits

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 26 11:47:54 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=9065



--- Comment #19 from Manu <turkeyman at gmail.com> 2012-11-26 11:47:52 PST ---
(In reply to comment #18)
> (In reply to comment #14)
> > Here's a line of code:
> >   enum i = 10;
> > 
> > I (and I presume any sane person) would say "that's an enum!".
> > I appreciate there is a distinction between an enum type and an enum value, but
> > they are both called enums, and I doubt any non-D-compiler-developer would
> > presume otherwise.
> > 
> > I don't care if they are separated, just that the terminology should make
> > sense.
> 
> Yes, but the correct answer to this is to not overload the word "enum" with two
> different meanings. Unfortunately, this ship has long sailed, but this still
> doesn't mean that we should repeat this mistake in the standard library,
> further adding confusion. If you don't like the term manifest constant, maybe
> isEnumConstant/isEnumType?

Sure, just as long as something useful is added to std.traits.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list