> On Jan 17, 2017, at 1:12 PM, Anton Zhilin <[email protected]> wrote:
>
> 2017-01-17 22:26 GMT+03:00 Joe Groff <[email protected]
> <mailto:[email protected]>>:
>> enum Something : RawRepresentable<Int32>
>> +1. But we don’t have generic protocols right now :(
>>
>
> I think this would be the right direction to go if we wanted to de-magic the
> existing RawRepresentable behavior. At this point, It would be reasonable to
> support this via where clauses on associated types:
>
> enum Something: RawRepresentable where RawValue == Int32 { ... }
>
> We don't have this conformance syntax either.
Sorry, I wasn't clear. We don't now, but in the fullness of time we should be
able to support that.
-Joe
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution