On Wed, Aug 09, 2000 at 04:20:32PM -0400, Ilya Zakharevich wrote:
> It is not clear though how to design concise-but-no-line-noise
> notation for \w etc.  But qr/ \( ( [a-z]{3,5} ) \) / may become
> 
>   "(" (.) group(1, [[ 'a' .. 'z' ]] (*) [3,5] ) (.) ")"
> 
> here (.) is the ASCII substitution for the UNICODE "REx concatenate"
> char, similarly for [[. ]] and (*).  (The chars may be borrowed from
> the math repertoire.)

Hmm. Looks nice. How about pattern functions, e.g.,

  sub match_all : pattern {
    "(" . group(1, [ 'a' .. 'z' ] * [3,5] ) . ")"
  }

Variable interpolation can be handled using Damian's curried expressions.

-- Johan

Reply via email to