Begin forwarded message:

From: "Steven Kelly" <[EMAIL PROTECTED]>
Date: September 17, 2008 1:24:16 PM CEDT
To: "Vassili Bykov" <[EMAIL PROTECTED]>, Steffen Märcker <[EMAIL PROTECTED] >
Cc: vwnc mailing list <[EMAIL PROTECTED]>
Subject: Re: [vwnc] Fwd: Regex11

OK! I've updated the code, tests and documentation and published as 1.3.

I second the vote for a Character predicate for this in the base - it would replace longer code in 7 places in a current standard image. I think the name should be #isWordConstituent, since "identifier" generally implies the first character is not numeric.

Steve

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Vassili Bykov
Sent: 17 September 2008 00:16
To: Steffen Märcker
Cc: vwnc mailing list
Subject: Re: [vwnc] Fwd: Regex11

I think \w should include underscore to match what seems to be the
expected behavior out there. Going a step further, perhaps a Character
predicate named something like #isIdentifierConstituent to include $_
in addition to pure alphanumerics would be useful.

Cheers,

--Vassili
_______________________________________________
vwnc mailing list
[EMAIL PROTECTED]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[EMAIL PROTECTED]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc



------- Weitergeleitete Nachricht -------
An: "Vassili Bykov" <[EMAIL PROTECTED]>
Kopie:
Betreff: Regex11
Datum: Mon, 15 Sep 2008 09:33:13 +0200

Dear Vassili Bykov,

as far as I can see you've written the Regex11 package and I think I've
found a bug. The documentation states:

        \w      any word constituent character (same as [a-zA-Z0-9_])

but the actual implementation fails with underscores:

        '_' matchesRegex: '\w'                  "evaluates to false"
        '_' matchesRegex: '[a-zA-Z0-9_]'        "evaluates to true"

Should the bug be fixed because we rely on the definition of \w or is it the better way to adjust the documentation in order not to break existing
applications? How can I help?



_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to