-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Traits modules partitioning #4
Comments
|
How about meta traits? Should they be considered here? And what about traits used some other modules, such as std.range traits or std.math |
Can you elaborate on those words, whats the exact meaning on this context?
I would go with
What kind of traits are there? Can you give an example? |
Well I suggested it so I'm ok with that.
This is because of one thing only. If we're going to, in the future, implement additional traits, how will we differ a trait from |
The problem with the
Sure, we can have a module for that in traits.
Those are not traits. Traits are related to types and symbols, not with constant values. They are not documented because they are used internally, marked as
Those "traits" are all about a sequence of types. Some of them, like you mentioned could be merged into
Yeah, I understand now. The ranges traits could be definitely on a traits module separately, although,...
... yeah, we should come up with a "standard" for that. |
Missclick :( |
One thing we could do is to expand the |
I agree, I guess some This is what D considers metaprogramming. I agree although, std.meta could be renamed. I guess we need to change that name to a more pleasant name, like |
It's better if we keep |
Then I would prefer to keep in the same module, like |
But that's the difference, |
Humm, ok. Got your point. Then, what do you consider to be traits on |
I consider |
Sure. To summarize, we have:
The only one I'm septical is the last one. Unless we don't have a name for it. |
I guess the last can just be
|
This if you want to follow the current each module in it's separated file rule. Otherwise |
Well, sure. If we have a better name, we could change it before the first release.
I'm against having Also as quoted:
|
Sure, agreed. |
I came with this partitioning from the standard library. What do you think?
taurus.traits.symbols
- Symbol Name traitstaurus.traits.functions
- Function traitstaurus.traits.aggregation
- Aggregate Type traitstaurus.traits.conv
- Type Conversiontaurus.traits.of
- SomethingTypeOftaurus.traits.uda
- User-Defined Attributes traitstaurus.traits.selection
- Selection traitstaurus.traits.mangle
- MangleI still don't know where to insert
General Types
,Type behaviours
andCategories of types
section of phobos here.The text was updated successfully, but these errors were encountered: