typelift / Aquifer

Functional streaming abstractions in Swift
72 stars 6 forks source link

Solve our polymorphic typealias problem #6

Closed CodaFi closed 9 years ago

CodaFi commented 9 years ago

While I was porting parts of the test suite, I remembered an old trick for recovering template aliases with typealiases in structs. This pull request is just a sketch for now so I don't forget it.

CodaFi commented 9 years ago

This is going to require a large audit of types, so I'll try to hold off until some more important, smaller changes come through.

pthariensflame commented 9 years ago

I like this idea! They should be enums with no cases, though, not structs; that way, no one can instantiate them.

CodaFi commented 9 years ago

That should do it.

Ready for review.

pthariensflame commented 9 years ago

This looks good to me now.