www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - SampleGenerator from std.regex.internal

reply "data man" <datamanrb gmail.com> writes:
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?
Jan 24 2015
parent Dmitry Olshansky <dmitry.olsh gmail.com> writes:
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
Jan 24 2015