commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <scolebou...@btopenworld.com>
Subject Re: [RT] Is a CL like wrapper for RE feasible?
Date Mon, 27 Sep 2004 09:37:02 GMT
This has been raised before.

The answer seems to be
1) the RE syntax varies
2) part of ORO already is (or is close to) the wrapper you describe

Stephen

----- Original Message ----- 
From: "Alex Karasulu" <aok123@bellsouth.net>
> I started looking at some code which uses both ORO and Regexp in various
> places.  Most of the code is targeted for 1.4 and up so there is a
> possibility for using 1.4 regular expressions as well.  Looking at the
> RE landscape and at the logging landscape one quickly asks, "is there
> room here for a commons-logging like wrapper but for regular expression
> implementations?"
> 
> Is there a way to wrap RE implementations?  At a cursory glance I would
> guess so.  It wouldn't be that difficult to abstract away the interfaces
> the same way CL has for logging implementations.  
> 
> However there seems to be a very subtle distinction to the
> logging-wrapper use case from what would be regex-wrapper usage.  A
> logging implementation is a choice.  Meaning any implementation can be
> used so long as it is supported by CL.  They all will work in the end. 
> This is not necessarily the case for a RE wrapper where some
> implementations may not support the same RE syntax.  So the
> implementation choice is somewhat restricted when the RE syntax is
> chosen.  Not every implementation is necessarily viable.
> 
> Makes me wonder ... is this the reason why there is no commons-regex?
> 
> Alex
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message