Interesting viewpoints ...
Yes, temporary variables are sometimes handy stopgap solutions.
I don't want exhaustiveness behaviour (why?!)
I was hoping that you would reveal the answer. Just a guess,
does it have anything to do with difficulties for an IDE to handle
exhaustiveness with respect to integer ranges?
P.S. I have managed to eliminate the refStr
, so my current
implementation doesn't rely on string comparisons any longer.
I therefore expect it to be considerably faster now. It still
isn't thread-safe, and it cannot handle optionals yet.
However, I don't feel a strong demand for these ideas,
so I'll keep the code to myself.