raptor wrote:
>
> Hi,
>
> I have couple of ideas which may or may not worth it, so I didn't
> wrote the RFC but will list them here in short.
> Here are the nice to have'it.
>
> 1. There will be good to have some sort of "match and/or assign" operator
> for structures i.e. HASHES. Can't still figure out the syntax but may be
> it must borrow some ideas from "switch/case" and Pascal
> "with" it should be also easy to say :
>
> if ( %a match %b ) ....
> or
> %a assign_diff %b - assign and/or add all key and/or values from %b which
> are
> not in %a OR diff ... :")
mildly nice...
>
> 2. "in" operator i.e.
>
> $a in (5,6,10,33,45)
> $a in @b
>
might be handy, but frequently when I need this type of functionality, I
just use a hash to start with.
<snip>
>
> 8. The following syntax to be possible :
>
> $hash{/re/} i.e. this is the same like
>
> my @res;
> foreach my $k (keys %hash)
> {
> if ($k =~ /re/) {push $hash{$k},@res}
> };
>
> OR
> keys %hash{/re/}
> values %hash{/re/}
> each %hash{/re/}
>
> This is very usefull for fast searching in DBM for example.
Way cool. I'd love this. But I think you've got your push arguments
backwards.
<snip>
> PS.
> Perl6 should stay Perl, but must be more than Perl.
> Perl6 should be fast as mentioned in one RFC - but most importantly it must
> be featurefull and must continue its tradition - "writing less, doing much"
> =====
> iVAN
> [EMAIL PROTECTED]
> =====
--
David Corbin
Mach Turtle Technologies, Inc.
http://www.machturtle.com
[EMAIL PROTECTED]