std.sumtype?
Jon Degenhardt
jond at noreply.com
Wed Mar 31 17:34:00 UTC 2021
On Tuesday, 30 March 2021 at 16:32:21 UTC, Paul Backus wrote:
> I will grant that it may not be obvious that you can use
> `static assert` with `match` in this way to begin with. That's
> something that can be addressed by improving SumType's
> documentation.
Yeah, I would say its not obvious :) But, there does seem to be a
fairly good opportunity for improving usability via
documentation. As another example, the ability to define a
catch-all handler is not mentioned in the text (or at least I
couldn't find it). It's in the examples.
I don't know that I'll have time to propose doc updates via
pull-request, but I might have time to make suggestions by some
other mechanism, like issue reports something else. Is there a
mechanism/venue that would work for you?
--Jon
More information about the Digitalmars-d
mailing list