Boost logo

Boost :

From: Reid Sweatman (borderland_at_[hidden])
Date: 2000-08-22 07:34:26


> -----Original Message-----
> From: John Maddock [mailto:John_Maddock_at_[hidden]]
> Sent: Saturday, August 19, 2000 5:34 AM
> To: INTERNET:boost_at_[hidden]
> Subject: [boost] Review: Regular Expression Library
>
>
> >* The high level interface RegEx includes a bunch of methods for grepping
> >through files. I'm not real keen on this: it makes the class
> less cohesive
> >and raises portability concerns because there are platforms like the Mac
> >where path names are not the preferred way of identifying files.
>
> I know :-)
>
> This is a classic example of tight-coupling of the kind that Jeremy's been
> trying to get us all to avoid. However the fact is that users really seem
> to like this interface, as one of my correspondents put it: "I can turn
> interns loose on this stuff".

Why not split off that higher-level functionality using something like the
Facade pattern? That would keep the core regex pure, and still provide an
"intern-level" interface.

Reid Sweatman


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk