[Issue 7356] Implement KeyType, ValueType for hashes in std.traits
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 26 04:09:16 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7356
--- Comment #5 from Kenji Hara <k.hara.pg at gmail.com> 2012-01-26 04:07:44 PST ---
(In reply to comment #2)
> Some have "Of", others don't. I don't see what "Of" adds, except verbosity.
IMHO, it comes from the typeof() feature.
First of all, and for fairness, `StringTypeOf` is the one that I added into
Phobos in the past, so original XXXTypeOf is only FunctionTypeOf.
I'm not a native English speaker, but it seems to me that XXXTypeOf!(Y) is more
natural than XXXType!(Y).
The former looks like a sentence, but latter like a noun. This kind of
templates work like meta function, and function name usually contains verb. So
I sometimes feel wrong about the latter.
And, 'KeyType' and 'ValueType' are often used in user code. I think we should
avoid using generic name as the piece of library, as far as possible.
--
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