[Issue 9065] Please consider adding these std.traits

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 26 06:47:12 PST 2012


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



--- Comment #12 from Kenji Hara <k.hara.pg at gmail.com> 2012-11-26 06:47:09 PST ---
(In reply to comment #11)
> Okay, I've worked my templates a little more, consider these:
[snip]

1. I would never agree with isFunction. They introduce huge confusion but has
no benefit. Blending traits about type and symbol is not a purpose of
std.traits.

2. isEnum should be separated to isEnumType and isManifestConstant (with better
name). Blending traits is very poor design.

And, there is no use case. if you propose an enhancement, you should show one
or more use cases in order to claim its usefulness.

(I always doubt the reason like "for the newbie". Increase of language newbies
is not worth than an increase of the design confusion in the standard library.)

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