On Thursday, 28 July 2016 at 21:02:59 UTC, John Carter wrote:
On Thursday, 28 July 2016 at 15:48:58 UTC, Seb wrote:
[...]
Eh. I hoped that somewhere in that explosion of discussion on
the topic the problem had been solved and I had just missed it
and merely had to use that.
Also this idea is a bit immature for a DIP... I haven't look at
the regex code beyond the the stack trace it died on.
ie.
* Would this even be a Good Idea for a dip or is it better
solve by another existing means?
* I only inspected and changed one occurrence of decode (the
one that broke) is there any other route in the regex engine
that could throw a UTFException?
* Would adding an additional template parameter with default
break existing code? Or would I have to provide a shim?
I suggest you talk to Dmitry, who wrote std.regex, as he will be
motivated to look into this.