I've managed to implement this already in the language with a few ugly
corners due to the lack of generic protocols.
I created a protocol based on Box (https://github.com/robrix/Box/) which
works really well. I have extended this to handle certain special protocols
like Equatable so you can do
Hello, newcomer here.
The other day I was reading about
https://www.reddit.com/r/swift/comments/3zbk64/type_math/ and given the verbose
solutions decided to pitch a possible language improvement. But after reading
through the archives it seems that this idea has already been pitched before:
*
I’m not saying your proposal would not be useful, but in the case of all of
your examples, there are solutions that can be implemented now that might be
better than just creating a new-type-but-exactly-the-same.
> On 5 Jan 2016, at 16:11, Grzegorz Adam Hankiewicz via swift-evolution
>
> Am 05.01.2016 um 17:11 schrieb Grzegorz Adam Hankiewicz via swift-evolution
> :
>
> The ideal would be for the compiler to pretend Euros or RefTablePk are
> different types, yet use their parent type at the binary level. This needs a
> specific syntax to teach the
> On Jan 5, 2016, at 11:16 AM, Thorsten Seitz via swift-evolution
> wrote:
>
>
>> Am 05.01.2016 um 17:11 schrieb Grzegorz Adam Hankiewicz via swift-evolution
>> :
>>
>> The ideal would be for the compiler to pretend Euros or RefTablePk
Thanks for doing the work to collect links related to this topic! I am
planning to give them a read.
You may be interested in the proposal I am working on for automatic protocol
forwarding.
The first draft was posted to the list last week: