Update std.traits to reflect renaming of TypeTuple to AliasSeq#4954
Update std.traits to reflect renaming of TypeTuple to AliasSeq#4954wilzbach wants to merge 7 commits intodlang:masterfrom
Conversation
… terminology changed imports to use std.meta i.o. std.typetuple rename names ending in "Tuple" or "List" by using plural of preceding word or replacing by Seq. rename unclear names "Parameters" and "Fields" to refer to "Types" since we have "Identifiers" of the same also. add deprecated tags to all aliases referring to the old names in all cases above. add deprecated tags to the typetuple module and alias. changed references to "function" to "callable" wherever the template was testing for isCallable. move description of callable to "isCallable" only. minor typo corrections.
| template SharedConstOf(T) { alias SharedConstOf = shared(const(T)); } | ||
| /// ditto. | ||
| template ImmutableOf(T) { alias ImmutableOf = immutable(T) ; } | ||
|
|
There was a problem hiding this comment.
does anyone know what @jamadagni was trying to do here?
AFAICT this change undocuments all these templates, doesn't it?
|
So I took #3756 as is (well apart from the necessary changes during the rebase) and started to amend my changes. The two important ones:
|
|
dat copyright year update |
|
What's Jenkins unhappy about? |
There are (a lot) more changes - you need to click on "Load diff" ;-)
Martin just started the project tester. However many of the projects are still broken with the current DMD / Phobos. So please ignore it for now. |
andralex
left a comment
There was a problem hiding this comment.
This seems to be a pass that someone made through a personal project after finding a nicer naming convention. I think it breaks too many things for too little benefit.
I think some of the things can be cherry picked, e.g. name of nodes in the grammar. Looks like a long task, thanks for taking it.
| * )) | ||
| * $(TR $(TD Type behaviours) $(TD | ||
| * $(LREF isAbstractClass) | ||
| * $(LREF isAbstractFunction) | ||
| * $(LREF isInstanceOf) |
There was a problem hiding this comment.
why did you move this? I think it was ordered alphabetically
| * $(LREF isFinalClass) | ||
| * $(LREF isFinalFunction) | ||
| * $(LREF isFunctionPointer) | ||
| * $(LREF isInstanceOf) | ||
| * $(LREF isSomeFunction) |
| * $(LREF Unqual) | ||
| * $(LREF Signed) |
There was a problem hiding this comment.
this wasn't ordered but probably should
| @@ -146,7 +146,7 @@ | |||
| * Copyright: Copyright Digital Mars 2005 - 2009. | |||
| * License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). | |||
| @@ -146,7 +146,7 @@ | |||
| * Copyright: Copyright Digital Mars 2005 - 2009. | |||
| * License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). | |||
| * Authors: $(HTTP digitalmars.com, Walter Bright), | |||
| * Tomasz Stachowiak ($(D isExpressions)), | |||
| * Tomasz Stachowiak ($(D isExpressionSeq)), | |||
There was a problem hiding this comment.
Use backticks since you touched it?
| template SharedConstOf(T) { alias SharedConstOf = shared(const(T)); } | ||
| /// ditto. | ||
| template ImmutableOf(T) { alias ImmutableOf = immutable(T) ; } | ||
|
|
| */ | ||
| template Parameters(func...) | ||
| template ParameterTypes(func...) |
| } | ||
|
|
||
| @safe unittest | ||
| { | ||
| alias STC = ParameterStorageClass; | ||
| alias PSC = ParameterStorageClass; |
There was a problem hiding this comment.
this kind of thing seems gratuitous
|
|
||
| // @@@DEPRECATED_2017-12@@@ | ||
| deprecated("It will be removed from Phobos in December 2017. Use ParameterTypes") | ||
| alias Parameters = ParameterTypes; |
| else | ||
| static assert(0, "argument has no parameters"); | ||
| } | ||
|
|
||
| // @@@DEPRECATED_2017-12@@@ | ||
| deprecated("It will be removed from Phobos in December 2017. Use ParameterTypes") | ||
| alias ParameterTypeTuple = ParameterTypes; |
There was a problem hiding this comment.
this seems something we can live with
Okay started with the least controversial bit: triggering the deprecation warnings for |
|
@MartinNowak - I think you should look at this. |
|
Closing this for the same reason as #4968 (not much time, no progress / consensus in sight). |
Revived #3756 as is (just rebased to latest Master).