SumType
JG
someone at somewhere.com
Thu Oct 28 09:02:52 UTC 2021
I am heavily using SumType (which I like very much). The problem
I am having is that is seems to be causing slow compile times (as
can be observed by profiling during the compile). The problem
seems to be with match (which is extremely convenient to use). I
looked at the code and it does the only reasonable thing too do
which is to test each handler against each type. The slow compile
time makes development slower and less pleasant, so I am thinking
of replacing SumType with my own tagged union and writing out the
switches by hand. However, I really don't like this idea since it
makes the code less readable and more prone to errors. Any
suggestions?
More information about the Digitalmars-d-learn
mailing list