Re: [dha@panix.com: Re: ^=~]

2002-01-22 Thread Larry Wall
David Whipp writes: : Piers Cawley [mailto:[EMAIL PROTECTED]] wrote: : > Damian Conway <[EMAIL PROTECTED]> writes: : > > I suppose this discussion also raises the vexed question : > whether ??:: can also be put out to pasture in favour of: : > > : > > $val = if $x { 1 } else { 2 }; : : I like

Re: Some Apocalypse 4 exception handling questions.

2002-01-22 Thread Larry Wall
Tony Olekshy writes: : In Apocalypse 4, Larry Wall wrote: : | : | In fact, a C of the form: : | : | CATCH { : | when xxx { ... } # 1st case : | when yyy { ... } # 2nd case : | ... # other cases, maybe a default : |

RE: [dha@panix.com: Re: ^=~]

2002-01-22 Thread David Whipp
Piers Cawley [mailto:[EMAIL PROTECTED]] wrote: > Damian Conway <[EMAIL PROTECTED]> writes: > > I suppose this discussion also raises the vexed question > whether ??:: can also be put out to pasture in favour of: > > > > $val = if $x { 1 } else { 2 }; I like that idea. > Only if you can also

tainting nums (was Re: the handiness of undef becoming NaN (when you want that))

2002-01-22 Thread Nicholas Clark
On Fri, Nov 09, 2001 at 09:14:10AM -0800, Larry Wall wrote: > NaN is merely the floating-point representation of undef when your > variable is stored in a bare num. And if you declare a variable as > int, there may well be no representation for undef at all! Similarly, > it may be impossible to

Re: Night of the Living Lexical (sequel to Apoc4: The loop keyword)

2002-01-22 Thread Piers Cawley
Michael G Schwern <[EMAIL PROTECTED]> writes: > On Mon, Jan 21, 2002 at 03:02:06PM -0500, Tzadik Vanderhoof wrote: >> Why all the fuss? Often, you would *want* to access that lexical after the >> loop terminates, for instance to check how it terminated. > > In most cases you don't want that to h

Re: [dha@panix.com: Re: ^=~]

2002-01-22 Thread Piers Cawley
Damian Conway <[EMAIL PROTECTED]> writes: > I suppose this discussion also raises the vexed question whether ??:: > can also be put out to pasture in favour of: > > $val = if $x { 1 } else { 2 } Only if you can also do: if $x { $x } else { $y } = 'foo'; But that looks really scary. -

Re: Apoc4: The loop keyword

2002-01-22 Thread Piers Cawley
Michael G Schwern <[EMAIL PROTECTED]> writes: > On Mon, Jan 21, 2002 at 03:27:29PM -0500, Casey West wrote: >> So you're suggesting that we fake lexical scoping? That sounds more >> icky than sticking to true lexical scoping. A block dictates scope, >> not before and not after. I don't see ick