On Thursday, 24 September 2020 at 02:28:11 UTC, Paul Backus wrote:
SumType is a generic sum type for modern D. It is designed to
be an improved
alternative to `std.variant.Algebraic`.
[...]
Sure looks like a strong advance. Hope it sees a lot of use.
SumType is a generic sum type for modern D. It is designed to be
an improved
alternative to `std.variant.Algebraic`.
Features:
- Pattern matching, including:
- Match-by-introspection ("if it compiles, it matches") (★)
- Multiple dispatch (★)
- Support for self-referential types (`Thi
On 9/23/2020 7:01 AM, Arun wrote:
How does the compiler handle function lookup when there is an ambiguous match,
but the ambiguous function is in a different module?
What would be the solution?
The same way it handles it without named arguments - an error.
On Thursday, 17 September 2020 at 12:58:06 UTC, Mike Parker wrote:
DIP 1030, "Named Arguments", has been accepted.
...
Mike, thanks for pulling this together. This question from the
feedback thread is still unanswered.
How does the compiler handle function lookup when there is an
ambiguous