Re: [swift-evolution] [Review] SE-0048: Generic Type Aliases

2016-03-29 Thread Howard Lovatt via swift-evolution
Personally I find typealias useful for giving a friendly name to long types and informative names to types in general. This applies to generic types as much as non-generic, e.g.: typealias Vec4 = (T, T, T, T) typealias Mat4 = (Vec, Vec, Vec, Vec) Further I would like to be able to add

Re: [swift-evolution] [Review] SE-0048: Generic Type Aliases

2016-03-24 Thread Howard Lovatt via swift-evolution
> > > >- What is your evaluation of the proposal? > > Really useful addition > > >- Is the problem being addressed significant enough to warrant a >change to Swift? > > Yes, it is a limitation of the current language that you can't do this. > You can get round the limitation using a

Re: [swift-evolution] [Review] SE-0048: Generic Type Aliases

2016-03-24 Thread Developer via swift-evolution
What is your evaluation of the proposal? +1. Especially for forcing the alias side of the declaration to explicitly keep track of type constraints. Is the problem being addressed significant enough to warrant a change to Swift? Yes. Previously, one could "work around" this by declaring a 0-case

[swift-evolution] [Review] SE-0048: Generic Type Aliases

2016-03-24 Thread Douglas Gregor via swift-evolution
Hello Swift community, The review of SE-0048 "Generic Type Aliases" begins now and runs through March 29, 2016. The proposal is available here: https://github.com/apple/swift-evolution/blob/master/proposals/0048-generic-typealias.md Reviews are an important part of the Swift evolution process.