SampleGenerator from std.regex.internal
Dmitry Olshansky via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jan 24 11:38:19 PST 2015
On 24-Jan-2015 21:34, data man wrote:
> Hello!
>
> SampleGenerator very useful.
> It can be used for the generation of passwords, texts with complex
> rules, etc.
>
> It may be worth making it available in public?
Originally it was used by internal tools to stress-test parser.
Part of the reason it's not public yet is that it doesn't handle all
syntax extensions, notably lookaround is tricky to get right without
falling into infinite loops. Another thing is that I don't want poorly
specified API to stick forever in std, I already had my share of poor
API problems in std.regex.
With all that being said - in the long run I definitely want to have
something like that public. For now I could only suggest to hack
protection attributes and be prepared for changes in the future. You may
also create a bugzilla ticket so it's not forgotten.
--
Dmitry Olshansky
More information about the Digitalmars-d
mailing list