Skip to content
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

Proposal: Improved type aliases #4884

Closed
alrz opened this issue Aug 29, 2015 · 2 comments
Closed

Proposal: Improved type aliases #4884

alrz opened this issue Aug 29, 2015 · 2 comments
Labels
Area-Language Design Resolution-Duplicate The described behavior is tracked in another issue

Comments

@alrz
Copy link
Contributor

alrz commented Aug 29, 2015

Currently we can define type aliases as follow
using Cache = System.Collections.Generic.Dictionary<string, string>;
but it does not support generic types and needs to be written with full namespaces
using Cache<T> = Dictionary<string, T>;
and also it is only in the file scope.

In the context of DDD, it would be a useful feature to have generic and universal type aliases so we can write methods and extension methods for specific yet simple types like
using EmailAddress = string;

@HaloFour
Copy link

Duplicate combining #58, #104, #116, #2044 and #3993.

@gafter
Copy link
Member

gafter commented Aug 31, 2015

Looks a great deal like #3993.

@gafter gafter added Resolution-Duplicate The described behavior is tracked in another issue Area-Language Design labels Aug 31, 2015
@gafter gafter closed this as completed Oct 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Language Design Resolution-Duplicate The described behavior is tracked in another issue
Projects
None yet
Development

No branches or pull requests

3 participants