> (?@foo) is sort of equivalent to (??{join('|',@foo)}), ie it expands into a
> list of alternatives. One could possible use just @foo, for this.
It just occurs to me that this is already possible. I've written a
module, 'atq', such that if you write
use atq;
then your regexes may contain the sequence
(?\@foo)
with the meaning that you asked for.
(The \ is necessary here because (?@foo) already has a meaning under
Perl 5, and I think your proposal must address this.)
Anyway, since this is possible under Perl 5 with a fairly simple
module, I wonder if it really needs to be in the Perl 6 core. Perhaps
it would be better to propose that the module be added to the Perl 6
standard library?
Module is at
http://www.plover.com/~mjd/perl/atq.tgz