Re: hash subscriptor

2004-04-10 Thread Gordon Henriksen
On Monday, March 15, 2004, at 11:05 , Larry Wall wrote: On Mon, Mar 15, 2004 at 07:54:09PM -0700, Luke Palmer wrote: Larry Wall writes: And basically because I decided :foo('bar') is too ugly for something that will get used as often as switches are on the unix command line. The %hash syntax

Re: hash subscriptor

2004-03-28 Thread Scott Walters
Whoops, that didn't work at all. Forgot about the %foo<><> case and it was losing the subscripts entirely. Let's try that again... http://www.cpan.org/modules/by-authors/id/S/SW/SWALTERS/Perl6-Variables-0.02_002.tar.gz http://slowass.net/~scott/Perl6-Variables-0.02_002.tar.gz This version still

Re: hash subscriptor

2004-03-28 Thread Scott Walters
I've updated Damian's Perl6::Variables module to treat %foo{bar} as %foo{bar()} and to handle %foo<> and %foo<>. If this syntax is finalized, I'll send Damian a patch. This is at: http://www.cpan.org/modules/by-authors/id/S/SW/SWALTERS/Perl6-Variables-0.02_001.tar.gz http://slowass.net/~scott/Pe

Re: hash subscriptor

2004-03-16 Thread John Williams
On Mon, 15 Mar 2004, Larry Wall wrote: > On Mon, Mar 15, 2004 at 11:56:26AM -0700, John Williams wrote: > : I'm probably a bit behind on current thinking, but did %hash{bareword} > : lose the ability to assume the bareword is a constant string? > > It's thinking hard about doing that. :-) > > : An

Re: hash subscriptor

2004-03-15 Thread Larry Wall
On Mon, Mar 15, 2004 at 07:54:09PM -0700, Luke Palmer wrote: : Larry Wall writes: : > On Mon, Mar 15, 2004 at 11:56:26AM -0700, John Williams wrote: : > : On Wed, 10 Mar 2004, Larry Wall wrote: : > : > You subscript hashes with {...} historically, or these days, «...», : > : > when you want constan

Re: hash subscriptor

2004-03-15 Thread Luke Palmer
Larry Wall writes: > On Mon, Mar 15, 2004 at 11:56:26AM -0700, John Williams wrote: > : On Wed, 10 Mar 2004, Larry Wall wrote: > : > You subscript hashes with {...} historically, or these days, Â...Â, > : > when you want constant subscripts. So what you're looking for is > : > something like: > :

Re: hash subscriptor

2004-03-15 Thread Larry Wall
On Mon, Mar 15, 2004 at 11:56:26AM -0700, John Williams wrote: : On Wed, 10 Mar 2004, Larry Wall wrote: : > You subscript hashes with {...} historically, or these days, «...», : > when you want constant subscripts. So what you're looking for is : > something like: : > : > if / ... ... { $?fo