aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpmichaud <pmichaud@pobox.com>2012-07-26 10:28:54 -0500
committerpmichaud <pmichaud@pobox.com>2012-07-26 10:28:54 -0500
commita1a51bc42f7219c8f8abe95a817f454e6e3a5e1d (patch)
tree06f6f1f96bf012f79b3be08b5785f767bd5fb495
parenteeaeb8fdd46c835f87bd7690295b5c40024c03c1 (diff)
Add deprecation notes for regex spec changes.
-rw-r--r--skel/docs/announce/2012.0712
1 files changed, 12 insertions, 0 deletions
diff --git a/skel/docs/announce/2012.07 b/skel/docs/announce/2012.07
index 6aa35c5..f6b610a 100644
--- a/skel/docs/announce/2012.07
+++ b/skel/docs/announce/2012.07
@@ -30,6 +30,18 @@ specification, and will be removed or changed:
* IO::File and IO::Dir will go away, and &dir will return values of type
IO::Path (which is currently the superclass of IO::File and IO::Dir).
+* Leading whitespace in rules and under :sigspace will no longer be
+ converted to <.ws> . For existing regexes that expect this conversion,
+ add a <?> in front of leading whitespace to make it meta again.
+ Scheduled for the 2012.08 release.
+
+* The ?-quantifier on captures in regexes currently binds the capture
+ slot to a List containing either zero or one Match objects; i.e., it
+ is equivalent to "** 0..1". In the future, the ?-quantifier will
+ bind the slot directly to a captured Match or to Nil. Existing code
+ can manage the transition by changing existing ?-quantifiers to
+ use "** 0..1", which will continue to return a List of matches.
+
* The method Str.bytes will be removed. To get the number of codepoints
in a string, use .codes instead. To get the number of bytes in a
given encoding, use $str.encode($encoding).bytes .