Re: backticks

2004-04-15 Thread Luke Palmer
Austin Hastings writes: > If you think about it, what we really ought to do is train ourselves > to "reverse" the numbers row on our keyboards. If we're doing a good > job about avoiding magic numbers, then " $ % & ( ) are going > to be much more frequently used than 2 4 5 7 9 0, so why don't we >

Re: backticks

2004-04-15 Thread Brent 'Dax' Royal-Gordon
Juerd wrote: I think %hash`key makes sense. But I'd like to find out if more people like this idea. We already have two hash dereference syntaxes. That's arguably one too many as it is. Let's fix the deficiencies in the syntax we have, rather than adding even more syntax with even more deficienci

RE: backticks

2004-04-15 Thread Austin Hastings
> -Original Message- > From: Jonathan Scott Duff [mailto:[EMAIL PROTECTED] > > On Thu, Apr 15, 2004 at 06:38:34PM -0400, Austin Hastings wrote: > > The use of % as a modulo operator is purely a legacy from 'C', > > where it was a failure: in 'C', the only number you care about > > for

RE: backticks

2004-04-15 Thread Austin Hastings
> -Original Message- > From: Luke Palmer [mailto:[EMAIL PROTECTED] > Austin Hastings writes: > > > From: Juerd [mailto:[EMAIL PROTECTED] > > > Austin Hastings skribis 2004-04-15 18:38 (-0400): > > > > $foo % bar > > > > > > " % " is 4 keys: space, shift, 5, space. Too much, IMHO. > > >

Re: backticks

2004-04-15 Thread Luke Palmer
Austin Hastings writes: > > -Original Message- > > From: Juerd [mailto:[EMAIL PROTECTED] > > > > Austin Hastings skribis 2004-04-15 18:38 (-0400): > > > $foo % bar > > > > " % " is 4 keys: space, shift, 5, space. Too much, IMHO. > > > > Typability and readability are both VERY important.

Re: Array/Hash Slices, multidimensional

2004-04-15 Thread Luke Palmer
Austin Hastings writes: > > > > -Original Message- > > From: Abhijit A. Mahabal [mailto:[EMAIL PROTECTED] > > Sent: Thursday, 15 April, 2004 05:13 PM > > To: [EMAIL PROTECTED] > > Subject: Array/Hash Slices, multidimensional > > > > > > As the hash syntax is being worked out, I thought it

RE: backticks

2004-04-15 Thread Austin Hastings
> -Original Message- > From: Juerd [mailto:[EMAIL PROTECTED] > > Austin Hastings skribis 2004-04-15 18:38 (-0400): > > $foo % bar > > " % " is 4 keys: space, shift, 5, space. Too much, IMHO. > > Typability and readability are both VERY important. In that case, why not define a Class::H

Re: backticks

2004-04-15 Thread Scott Walters
Ack - well, I was downright antagonistic, so I really earned it. I can only try to accept criticism as well as the rest of the list has. Apology accepted of course, and an apology of my own to the list who had to suffer me and chromatic who didn't take me too seriously ;) -scott On 0, chroma

Re: backticks

2004-04-15 Thread Jonathan Scott Duff
On Thu, Apr 15, 2004 at 06:38:34PM -0400, Austin Hastings wrote: > The use of % as a modulo operator is purely a legacy from 'C', where it was > a failure: in 'C', the only number you care about for modulus is some power > of 2, and you get those using bitwise-and anyway. I disagree with this comp

Re: backticks

2004-04-15 Thread Juerd
Austin Hastings skribis 2004-04-15 18:38 (-0400): > $foo % bar " % " is 4 keys: space, shift, 5, space. Too much, IMHO. Typability and readability are both VERY important. Juerd

Re: backticks

2004-04-15 Thread Juerd
Thomas A. Boyer skribis 2004-04-15 16:22 (-0600): > But I really hate the idea of removing `...` and leaving qx/.../. That > would leave qx// in the unenviable position of being the only > "quote-like operator" that doesn't have a corresponding quote-like > syntax. s, rx, tr > After all, the o

RE: backticks

2004-04-15 Thread Austin Hastings
> -Original Message- > From: Matthijs van Duin [mailto:[EMAIL PROTECTED] > On Fri, Apr 16, 2004 at 12:14:08AM +0200, Juerd wrote: > >%foo is a hash. When I see %foo%bar, it feels like that should be a hash > >too. Besides that, $foo%bar looks funny and @[EMAIL PROTECTED] does so even mor

Re: backticks

2004-04-15 Thread Matthijs van Duin
On Fri, Apr 16, 2004 at 12:14:08AM +0200, Juerd wrote: %foo is a hash. When I see %foo%bar, it feels like that should be a hash too. Besides that, $foo%bar looks funny and @[EMAIL PROTECTED] does so even more. Not to mention @[EMAIL PROTECTED] I like ` because it's a small but recognisable glyph. (

Re: backticks

2004-04-15 Thread Thomas A. Boyer
Luke Palmer wrote: That said, I have mixed feelings about the idea. I am thoroughly convinced that ` can leave it's current job. Removing qx// would be going a leap too far. But I really hate the idea of removing `...` and leaving qx/.../. That would leave qx// in the unenviable position of

RE: Array/Hash Slices, multidimensional

2004-04-15 Thread Austin Hastings
> -Original Message- > From: Abhijit A. Mahabal [mailto:[EMAIL PROTECTED] > Sent: Thursday, 15 April, 2004 05:13 PM > To: [EMAIL PROTECTED] > Subject: Array/Hash Slices, multidimensional > > > As the hash syntax is being worked out, I thought it'd be a good time to > ask if the following

Re: backticks

2004-04-15 Thread Juerd
Austin Hastings skribis 2004-04-15 18:09 (-0400): > If we're going to entertain alternatives, why not use % as the hash > subscriptor? > To borrow from another thread: > %foo%monday%food = 10; > %foo%monday%travel = 100; > %foo%tuesday%food = 10; > %foo%tuesday%travel = 150; There is as fa

RE: backticks

2004-04-15 Thread Austin Hastings
> -Original Message- > From: Juerd [mailto:[EMAIL PROTECTED] > Sent: Thursday, 15 April, 2004 05:09 PM > To: Dave Mitchell > Cc: [EMAIL PROTECTED] > Subject: Re: backticks > > > Dave Mitchell skribis 2004-04-15 21:56 (+0100): > > If hypothetically we *are* going to have a simplfied consta

Re: backticks

2004-04-15 Thread David Storrs
On Thu, Apr 15, 2004 at 11:45:27AM +0200, Juerd wrote: > David Storrs skribis 2004-04-14 22:39 (-0700): > > Very top row, one space right of the F12 key. Extremely awkward. > > (This is a US keyboard on a Dell Inspiron 5100 laptop.) > > That is inconvenient. Yup. > > 1) ` looks like it should b

Re: backticks

2004-04-15 Thread chromatic
On Thu, 2004-04-15 at 13:37, Larry Wall wrote: > Well, I, for one, think chromatic was right on the money. No matter how right my thoughts might have been, my tone *was* rude and that's not right. Apologies to Scott. -- c

Array/Hash Slices, multidimensional

2004-04-15 Thread Abhijit A. Mahabal
As the hash syntax is being worked out, I thought it'd be a good time to ask if the following will be supported in some form: If I have some structure like %foo{"monday"}, %foo{"tuesday"} etc, I can set their values enmass using: %foo<> = <>; What if I had %foo{"monday"}{"food_ex

Re: backticks

2004-04-15 Thread Juerd
Dave Mitchell skribis 2004-04-15 21:56 (+0100): > If hypothetically we *are* going to have a simplfied constant-index hash > access syntax, is there any reason why we can't use a single quote (') > rather than backtick ('), akin to the Perl4-ish package separator, > ie %foo'bar rather than %foo`bar

Synopsis 3 not on dev.perl.org?

2004-04-15 Thread Garrett Goebel
I found Luke Palmer's Synopsis 3 on perl.com at http://www.perl.com/pub/a/2004/03/18/synopsis3.html but didn't see it out at http://dev.perl.org/perl6/synopsis/. -- Garrett Goebel IS Development Specialist ScriptPro Direct: 913.403.5261 5828 Reeds Road Main: 913.

Re: backticks

2004-04-15 Thread Juerd
Mark J. Reed skribis 2004-04-15 16:49 (-0400): > If I might offer a modest counter-proposal - how about a fallback method > (the equivalent of Perl5's AUTOLOAD or Ruby's method_missing, however > that winds up being spelled in Perl6) that would return the value of the > key equal to the requested m

Re: backticks

2004-04-15 Thread Mark J. Reed
On 2004-04-15 at 16:49:28, Mark J. Reed wrote: > Not sure that JavaScript is relevant here, since the "equivalent" > syntax there, ".", is the same as the method call syntax. But see my > proposal below. Before the nit-pickers jump in, I was oversimplifying above. The "method call syntax" in Jav

Re: backticks

2004-04-15 Thread Dave Mitchell
If hypothetically we *are* going to have a simplfied constant-index hash access syntax, is there any reason why we can't use a single quote (') rather than backtick ('), akin to the Perl4-ish package separator, ie %foo'bar rather than %foo`bar? On the grounds that personally I hate the backtick

Re: backticks

2004-04-15 Thread Mark J. Reed
Scott> * %hash`s is an example of a small thing that would be easy to implement Scott> in core but would be used constantly (if JavaScript is any indication, Scott> every few lines), giving a lot of bang for the buck Not sure that JavaScript is relevant here, since the "equivalent" syntax there

Re: backticks

2004-04-15 Thread Larry Wall
On Thu, Apr 15, 2004 at 01:26:47PM -0700, Scott Walters wrote: : So, my apologies to who anyone who feels unfairly or excessively criticized, : except chromatic. There is no forgiveness for someone who seeks out irked people : with the single goal of further irking them. Since chromatic is so eager

RE: backticks

2004-04-15 Thread Austin Hastings
> -Original Message- > From: Scott Walters [mailto:[EMAIL PROTECTED] > Sent: Thursday, 15 April, 2004 03:27 PM > To: [EMAIL PROTECTED] Juerd > Cc: [EMAIL PROTECTED] > Subject: Re: backticks > > > Let me summerize my undestanding of this (if my bozo bit isn't already > irrevocably set): >

Re: backticks

2004-04-15 Thread Scott Walters
It's you. * My objection to the Java community process applies in _some_ _small_ part to the Perl community process. I present it as a negative ideal with the implication that it should be avoided. * My objection to it being rejected out of hand applies not to the Perl community process no

Re: backticks

2004-04-15 Thread Matthijs van Duin
On Thu, Apr 15, 2004 at 12:27:12PM -0700, Scott Walters wrote: Let me summerize my undestanding of this (if my bozo bit isn't already irrevocably set): * %hash<> retains the features of P5 $hash{foo} but does nothing to counter the damage of removal of barewords Actually, %hash<> will be like p5

Re: backticks

2004-04-15 Thread chromatic
On Thu, 2004-04-15 at 12:27, Scott Walters wrote: Without commenting on the rest of the proposal, please allow me to clear up one point: > * Rather than eliciting public comment on %hash`foo (and indeed %hash<>) > the proposal is being rejected out of hand This whole thread *is* public comment.

Re: backticks

2004-04-15 Thread Scott Walters
Let me summerize my undestanding of this (if my bozo bit isn't already irrevocably set): * %hash<> retains the features of P5 $hash{foo} but does nothing to counter the damage of removal of barewords * %hash`foo occupies an important nitch, trading features (slice, autovivication) to optmize for

Re: backticks

2004-04-15 Thread Juerd
Aaron Sherman skribis 2004-04-15 14:29 (-0400): > On Wed, 2004-04-14 at 16:56, Juerd wrote: > > How many of those backticks > Note, those weren't backticks, those were programs. There were 123 > PROGRAMS that used backticks or equivalent syntax. I said backticks, and I meant backticks. I'm not sur

Re: Compatibility with perl 5

2004-04-15 Thread Aaron Sherman
On Thu, 2004-04-15 at 13:23, Johan Vromans wrote: > "Gregor N. Purdy" <[EMAIL PROTECTED]> writes: > > > ... that I would be perfectly happy to be required to start all my > > Perl 6 programs with "#!/usr/bin/perl6" instead of > > "#!/usr/bin/perl", > > Ten years ago I was perfectly happy to start

Re: Compatibility with perl 5

2004-04-15 Thread Johan Vromans
"Gregor N. Purdy" <[EMAIL PROTECTED]> writes: > ... that I would be perfectly happy to be required to start all my > Perl 6 programs with "#!/usr/bin/perl6" instead of > "#!/usr/bin/perl", Ten years ago I was perfectly happy to start all my perl programs with /usr/bin/perl5. Today, I would be qui

Re: Compatibility with perl 5

2004-04-15 Thread zsdc
Gregor N. Purdy wrote: Personally, I view Perl 6 as such a completely new language (although still Perlish in spirit, it is very different in other respects), that I would be perfectly happy to be required to start all my Perl 6 programs with "#!/usr/bin/perl6" instead of "#!/usr/bin/perl", just t

Re: Compatibility with perl 5

2004-04-15 Thread Aaron Sherman
On Wed, 2004-04-14 at 21:23, Gregor N. Purdy wrote: > Lets try that again, since I think you parsed my email in a way I > didn't intend (and its at least 50% my fault) Hey! *I* have to step up for 50% of the blame now? Where's my lawyer! ;-) > In my opinion, starting a script with "#!/usr/bin/per

Re: backticks

2004-04-15 Thread Juerd
Aaron Sherman skribis 2004-04-14 16:40 (-0400): > >From a source tree I work with (which I cannot divulge code from, but I > think statistics like this are fine): > $ find . -name \*.pl | wc -l > 330 > $ find . -name \*.pl -exec grep -hlE 'qx|`|`|readpipe' {} \; | wc -l

Re: backticks

2004-04-15 Thread Aaron Sherman
On Wed, 2004-04-14 at 17:04, Simon Cozens wrote: > [EMAIL PROTECTED] (Aaron Sherman) writes: > > `` gets used an awful lot > > But that's in Perl 5, which is a glue language. I'm not sure I fully agree with that. Perl 5 *can* be a glue language, and so can Perl 6. They are not terribly distinct

Re: Compatibility with perl 5

2004-04-15 Thread Piers Cawley
Luke Palmer <[EMAIL PROTECTED]> writes: > David Cantrell writes: >> A few days ago I briefly discussed with Nicholas Clark (current perl 5.8 >> pumpking) about making perl5 code forward-compatible with perl6. A >> quick look through the mailing list archives didn't turn up anything >> obvious, an

Re: backticks

2004-04-15 Thread Juerd
David Storrs skribis 2004-04-14 22:39 (-0700): > Very top row, one space right of the F12 key. Extremely awkward. > (This is a US keyboard on a Dell Inspiron 5100 laptop.) That is inconvenient. > 1) ` looks like it should be a bracketing operator I think you means circumfix/balanced operator.

Re: backticks

2004-04-15 Thread Juerd
Chris skribis 2004-04-14 17:07 (-0700): > Perhaps this is naive, but couldn't something like this be achieved in a > manner similar to how I just implemented it in Ruby? Surely Perl will have > similar capabilities to handle unknown methods. As explained in <[EMAIL PROTECTED]>, it's not a questio