Formal Review of std.regex (FReD)

Jacob Carlborg doob at me.com
Sun Oct 9 11:47:35 PDT 2011


On 2011-10-09 17:29, Dmitry Olshansky wrote:
> On 09.10.2011 19:09, Jacob Carlborg wrote:
>> On 2011-10-09 17:01, Dmitry Olshansky wrote:
>>> On 09.10.2011 18:49, Jacob Carlborg wrote:
>>>> On 2011-10-09 16:09, Dmitry Olshansky wrote:
>>>>> On 09.10.2011 14:33, Jacob Carlborg wrote:
>>>>>> On 2011-10-08 21:56, Jesse Phillips wrote:
>>>>>>> Hello everyone,
>>>>>>>
>>>>>>> I have taken the role of review manager of the std.regex
>>>>>>> replacement by
>>>>>>> Dmitry Olshansky. The review period begins now 2011-10-8 and will
>>>>>>> end on
>>>>>>> 2011-10-23 at midnight UTC. A voting thread to include into Phobos
>>>>>>> will
>>>>>>> be held after review assuming such is appropriate. The Voting
>>>>>>> period is
>>>>>>> one week.
>>>>>>>
>>>>>>> Please note that you can try FRed as part of Phobos (Code) or by
>>>>>>> itself
>>>>>>> (Package of FReD) which includes docs.
>>>>>>>
>>>>>>> Doc:
>>>>>>>
>>>>>>> http://nascent.freeshell.org/fred/doc/
>>>>>>
>>>>>> What's the difference between Regex and RegEx? I can see RegEx in the
>>>>>> documentation but I cannot find its definition in the docs.
>>>>>>
>>>>>
>>>>> RegEx is a template parameter (it's that usual abstract 'T'), that in
>>>>> the end deduced as StaticRegex!Char or Regex!Char where Char is
>>>>> char/wchar/dchar.
>>>>
>>>> I don't think the documentation should refer to RegEx if it's not
>>>> defined in the docs.
>>>>
>>> Yes, I think I see the typo now, thanks.
>>
>> The second parameter type of the match function (and a couple of other
>> functions) is RegEx, is that possible to fix as well?
>>
>
> No, that's what I tried to point out but failed obviously.
> The thing is that it is a templated parameter and due to constraint it
> could be either StaticRegex!Char or Regex!Char. They represent pattern
> compiled as machine code or bytecode respectively for character width of
> Char. All of the 6 versions of compiled patterns in the end do not have
> a common type nor one is technically possible (w/o some quite bad
> performance trade offs).

Aha, ok, I see. Could RegEx be explained in the docs so it won't cause 
further confusion?

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list