[swift-evolution] Ad hoc enums / options
Haravikk
swift-evolution at haravikk.me
Wed Jun 1 06:53:41 CDT 2016
> On 1 Jun 2016, at 12:35, Leonardo Pessoa <me at lmpessoa.com> wrote:
>
> Unions have been discussed earlier in this group and I personally
> think this is an issue better solved using function overloading.
Sorry, my intention wasn’t to debate them, I was just using them as an example of a specialised ad-hoc enum where compatibility isn’t an issue (because a union of the same types means the same thing everywhere you use it, which isn’t the case for general ad-hoc enums).
More information about the swift-evolution
mailing list