combine, reorg, and rename std.meta and typecons #24
Replies: 1 comment 1 reply
-
std.meta and std.typecons provide completely different functionality from one another. std.meta provides templates for operating on While altering the exact set of templates provided by std.meta likely makes sense (and some of them may need some reworking), I don't see how it would make sense to combine it with anything from std.typecons, because their purposes are completely different. std.meta also isn't very large, so unless we add a bunch of stuff to it (which I doubt that we will), it doesn't really make sense to break it up or rearrange it either. Now, because std.typecons is such a hodgepodge of stuff, there's definitely an argument for breaking it up / rearranging it in some fashion, but what exactly makes sense with that depends largely on what we keep. Certainly, some of it should be redesigned on some level, and some of it probably doesn't need to end up in Phobos v3, but each item in there will need to be examined and evaluated individually. As for |
Beta Was this translation helpful? Give feedback.
-
Theres a few very important functions here and allot of ... templates of questionable value, lots of naming complaints, etc.
Id suggest a simpler std.meta with:
Seq(shortened aliasSeq)
tuple
isTuple
toTuple(allows single values to use
foo[0]
, leaves tuples as is)nullable (with
opIndex(typeof(null))
, permissive)optional (with
get(){assert( ! isnull); return value;}
, strict)etc. cut off near staticMap?
if
Erase
templateNot
whiteHole
airnt deleted should be put elsewhereBeta Was this translation helpful? Give feedback.
All reactions