Re: Topicalizers: Why does when's EXPR pay attention to topicaliz er r egardless of associated variable?

2002-02-28 Thread Allison Randal
On Thu, Feb 28, 2002 at 03:17:19PM -0600, Garrett Goebel wrote: > I do worry that as Perl grows richer, so does the need for underlying > consistency and simplicity. You're not alone in that. > I guess it is all about seeking the correct balance. And that is > something Larry and the Perl commu

Re: Topicalizers as user-defined extensions

2002-02-28 Thread Allison Randal
On Thu, Feb 28, 2002 at 03:28:29PM -0800, Austin Hastings wrote: > > --- Garrett Goebel <[EMAIL PROTECTED]> wrote: > > > > Hmm... Out of curiosity what kind of user-extensible topicalizer > > aware constructs would you make? > > Remember Larry's comment that the -> operator is a kind of "parame

Re: proposal: when-blocks, and binding $_

2002-02-28 Thread Allison Randal
On Thu, Feb 28, 2002 at 04:12:12PM -0800, Austin Hastings wrote: > > Nobody has the least bit of trouble understanding that WITHIN the for > loop, the "default value" just changed from whatever it was outside. Well, C is a topicalizer, and always has been, even before we had a name for it, so th

Re: Topicalizers as user-defined extensions

2002-02-28 Thread Allison Randal
On Thu, Feb 28, 2002 at 03:30:00PM -0600, Garrett Goebel wrote: > > Hmm... Out of curiosity what kind of user-extensible topicalizer aware > constructs would you make? I'm envisioning something along the lines of: while parsing a file, you have a C loop through the file and a series of subrouti

Re: proposal: when-blocks, and binding $_

2002-02-28 Thread Austin Hastings
--- Allison Randal <[EMAIL PROTECTED]> wrote: > On Wed, Feb 27, 2002 at 10:11:13AM -0800, Austin Hastings wrote: > > > > > C is a conditional like C, not a topicalizer. > > > > Right, it's a topicalizee, the victim of topicalization. > > And so it uses $_ or $x or $! or whatever the current to

Re: Topicalizers as user-defined extensions

2002-02-28 Thread Austin Hastings
--- Garrett Goebel <[EMAIL PROTECTED]> wrote: > Allison Randal wrote: > > Garrett Goebel wrote: > > > > > > I guess the next question in the context of the following is: > > > > > > Larry Wall wrote in Apocalypse 4: > > > > > > > > It should be possible to make user-extensible syntax look > > >

Topicalizers as user-defined extensions

2002-02-28 Thread Garrett Goebel
Allison Randal wrote: > Garrett Goebel wrote: > > > > I guess the next question in the context of the following is: > > > > Larry Wall wrote in Apocalypse 4: > > > > > > It should be possible to make user-extensible syntax look > > > just like built-in syntax. > > > > How would I create a user-

RE: Topicalizers: Why does when's EXPR pay attention to topicaliz er r egardless of associated variable?

2002-02-28 Thread Garrett Goebel
From: Allison Randal [mailto:[EMAIL PROTECTED]] > On Wed, Feb 27, 2002 at 04:24:48PM -0600, Garrett Goebel wrote: > > From: Allison Randal > > > > Not just some value external to the switch, but the value in $_. > > > > I now see the DWIM aspect. Thanks BTW. > > > > But how often will people ha