Skip to content

Conversation

@wesm
Copy link
Member

@wesm wesm commented Jun 12, 2020

Even without the compiler error on VS 2017 I am not a fan of using variant to solve problems like these (so to me this new code is strictly preferable to the old code), nor exposing a variant in public (or "public") APIs unless it is definitely needed.

@github-actions
Copy link

@fsaintjacques
Copy link
Contributor

I also agree with the sentiment on variant, I noted this here (which touches the same code path).

While variant can elegantly solve issues in other languages, e.g. rust enums, it diverges from our current usage of interfaces and inheritance and seems to break some compilers.

@wesm
Copy link
Member Author

wesm commented Jun 12, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants