draft proposal for Sum Types for D
Timon Gehr
timon.gehr at gmx.ch
Tue Nov 29 16:53:53 UTC 2022
On 11/29/22 16:54, deadalnix wrote:
>
> The second one is that it ends up replacing builtin types in the
> codebase by custom types, most notably dynamic arrays (which I'll call
> slices). Doing so de facto breaks most of the codebase in ways that
> cannot be easily fixed, because there is no way to have a builtin type
> that behave like a slice.
How are you replacing slices with sum types precisely? Was it enum tag
and a slice, where the tag also determines the length of the slice?
More information about the Digitalmars-d
mailing list