Re: Fw: perl6 operator precedence table

2002-10-11 Thread Chris Dutton
On Wednesday, October 9, 2002, at 05:03 PM, Trey Harris wrote: > In a message dated Wed, 9 Oct 2002, Michael Lazzaro writes: > >> >> Uh-oh: my life is gonna suck. I've spent days hunting obscure bugs >> that were caused by a single mistyped character. Now I'll be spending >> days hunting obsc

Re: Fw: perl6 operator precedence table

2002-10-10 Thread Brad Hughes
Larry Wall wrote: [...] > Maybe we should ... to mean "and so on forever": > > @a[0...; 0...:10; 0...:100] > > Except then we couldn't use it to mean what Ruby means by it, which > might be handier in real life. No more yada-yada-yada? Brad

Re: Fw: perl6 operator precedence table

2002-10-09 Thread Michael G Schwern
On Tue, Oct 08, 2002 at 06:07:09PM -0700, Larry Wall wrote: > I've always wondered what the ! postfix operator means. The mathematicians > think they know. :-) The Ruby folks think they know. They're method name conventions. >From "Programming Ruby" Methods that act as queries are often

Re: Fw: perl6 operator precedence table

2002-10-09 Thread Trey Harris
In a message dated Wed, 9 Oct 2002, Michael Lazzaro writes: > > Uh-oh: my life is gonna suck. I've spent days hunting obscure bugs > that were caused by a single mistyped character. Now I'll be spending > days hunting obscure bugs that were caused by a single *pixel*. > I've already been the

Re: Fw: perl6 operator precedence table

2002-10-09 Thread Larry Wall
On Wed, 9 Oct 2002, Brad Hughes wrote: : Larry Wall wrote: : [...] : > Maybe we should ... to mean "and so on forever": : > : > @a[0...; 0...:10; 0...:100] : > : > Except then we couldn't use it to mean what Ruby means by it, which : > might be handier in real life. : : No more yada-yada-y

Re: Fw: perl6 operator precedence table

2002-10-09 Thread Michael Lazzaro
On Wednesday, October 9, 2002, at 10:35 AM, Larry Wall wrote: > Except then we couldn't use it to mean what Ruby means by it, which > might be handier in real life. (It means to exclude the endpoint, > so 0...4 is the same as 0..3. But then, that's kind of odd too.) Uh-oh: my life is gonna s

Re: Fw: perl6 operator precedence table

2002-10-09 Thread Nicholas Clark
On Wed, Oct 09, 2002 at 10:35:32AM -0700, Larry Wall wrote: > On Wed, 9 Oct 2002, Nicholas Clark wrote: > : On Tue, Oct 08, 2002 at 06:07:09PM -0700, Larry Wall wrote: > : Would that mean that three other special cases of postfix .. might exist? > : > : 0..; # useful for return 0..; > > I bet

Re: Fw: perl6 operator precedence table

2002-10-09 Thread Trey Harris
In a message dated Wed, 9 Oct 2002, Larry Wall writes: > If only we had Unicode editors, we could just force everyone to use > the infinity symbol where they mean it. It seems a shame to make a > special case of the .. operator. Maybe we should ... to mean "and so > on forever": > > @a[0...;

Re: Fw: perl6 operator precedence table

2002-10-09 Thread Larry Wall
On Wed, 9 Oct 2002, Nicholas Clark wrote: : On Tue, Oct 08, 2002 at 06:07:09PM -0700, Larry Wall wrote: : > There's this basic rule that says you can't have an operator for both binary : > and postfix, since it's expecting an operator in either case, rather than a : > term (which is how we recogni

Re: Fw: perl6 operator precedence table

2002-10-09 Thread Nicholas Clark
On Tue, Oct 08, 2002 at 06:07:09PM -0700, Larry Wall wrote: > There's this basic rule that says you can't have an operator for both binary > and postfix, since it's expecting an operator in either case, rather than a > term (which is how we recognize prefix operators). The one exception I can > t

Re: Fw: perl6 operator precedence table

2002-10-08 Thread Larry Wall
On Thu, 26 Sep 2002, Joe Gottman wrote: : Apocalypse 4 mentions unary '?' . Since this is used to force boolean : context, I would assume that it has the same precedence as unary '+' and : '_' which force numeric and string context respectively. By the way, has : anyone come up with a use

Fw: perl6 operator precedence table

2002-09-26 Thread Joe Gottman
Apocalypse 4 mentions unary '?' . Since this is used to force boolean context, I would assume that it has the same precedence as unary '+' and '_' which force numeric and string context respectively. By the way, has anyone come up with a use for binary '?' yet? Joe Gottman > - Ori