Formal Review of std.regex (FReD)

Marco Leise Marco.Leise at gmx.de
Mon Oct 24 18:09:43 PDT 2011


Am 22.10.2011, 21:05 Uhr, schrieb Dmitry Olshansky <dmitry.olsh at gmail.com>:

> Definitely. How about adding an empty property + opCast to bool, with  
> that you'd get:
> if(!re)
> {
> //create re
> }

It is nice that you *can* do this,

> and a bit more verbose:
> if(re.empty)
> {
> //create re
> }

but I prefer some speaking name here. Otherwise I'd believe 're' is a  
pointer or boolean + it is harder to look up in the documentation.


More information about the Digitalmars-d mailing list