
2 Jul
2006
2 Jul
'06
6:10 p.m.
"David Abrahams" wrote:
I appreciate the convenience of such an interface, I really do, but doesn't this design just compound the "fat interface" problems that std::string already has?
Even Python's string, which has a *lot* built in, doesn't try to handle the regex stuff directly.
While Ruby has technically separate class for Regex its syntax makes it look as a part of string: # switch on string with regex s = "a string" case s when /a*/: print "something\n" ... end # match of string with regex /^a*/ =~ "aa" /Pavel