HomePhorge

(PUP-957) Remove special meaning of Regexp[r] in =~ !~ expressions.
1d5737354e96Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-957) Remove special meaning of Regexp[r] in =~ !~ expressions.

There are several issues with the previously implemented support
where a parameterized Regexp was a stand in for a real regular
expression:

  • The match variables where not set (and would be difficult to return in general since Regexp's and Patterns can be nested in other types).
  • Blurry line between what a Regexp type is, and String since Regexp[r]

produces a RegularExpression Type, not a Regexp instance.

This simply removes the special handling. A user can still use:

  • Regexp (/..../)
  • A String - transforms to a Regexp
  • Pattern[p] type (since it is a real subtype of String)

Details

Provenance
Henrik Lindberg <henrik.lindberg@cloudsmith.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU90aad3fff7d2: Merge remote-tracking branch 'origin/stable'
Branches
Unknown
Tags
Unknown

Event Timeline

Henrik Lindberg <henrik.lindberg@cloudsmith.com> committed rPU1d5737354e96: (PUP-957) Remove special meaning of Regexp[r] in =~ !~ expressions. (authored by Henrik Lindberg <henrik.lindberg@cloudsmith.com>).May 5 2014, 4:47 PM