core.traits?

Manu turkeyman at gmail.com
Mon Jan 7 21:25:17 UTC 2019


On Sat, Jan 5, 2019 at 11:00 PM Walter Bright via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> On 1/5/2019 1:12 PM, Manu wrote:
> > We should move them to core.traits, and that should be their official
> > home. It really just makes sense. Uncontroversial low-level traits
> > don't belong in phobos.
>
> Sounds good.

Okay, so this is a challenging effort, since phobos is such a tangled
rats nets of chaos...
But attempting to move some traits immediately calls into question std.meta.
I think we can all agree that Alias and AliasSeq should be in druntime
along with core traits... but where should it live?
Should there be core.meta as well? It's kinda like core.traits, in
that it doesn't include runtime code, it doesn't increase the payload
of druntime.lib for end-users..
Perhaps AliasSeq should live somewhere different?
I'm feeling like a lean/trimmed-down core.meta might want to exist
next to core.traits though; it seems reasonable.

...yes, this process will go on and on. The only way forward is to
take each hurdle one at a time... and ideally, in attempting this
effort, we can de-tangle a lot of cruft during the process.


More information about the Digitalmars-d mailing list