Re: Hypothetical synonyms

2002-08-27 Thread Uri Guttman
> "LW" == Larry Wall <[EMAIL PROTECTED]> writes: LW> On 27 Aug 2002, Uri Guttman wrote: : and quoteline might even LW> default to " for its delim which would make : that line: LW> : LW> : my ($fields) = /(|\S+)/; LW> That just looks like: LW> my $field = //; where is the grabb

Re: Hypothetical synonyms

2002-08-27 Thread Larry Wall
On 27 Aug 2002, Uri Guttman wrote: : and quoteline might even default to " for its delim which would make : that line: : : my ($fields) = /(|\S+)/; That just looks like: my $field = //; Larry

Re: Hypothetical synonyms

2002-08-27 Thread Larry Wall
On 27 Aug 2002, Uri Guttman wrote: : > "LW" == Larry Wall <[EMAIL PROTECTED]> writes: : LW> m{^\s*[ : LW> "$stuff:=(.*?)" | : LW> $stuff:=(\S+) : LW> ]}; : : couldn't that be reduced to: : : m{^\s* $stuff := [ "(.*?)" | (\S+) ] }; : : the | will only ret

Re: Hypothetical synonyms

2002-08-27 Thread Uri Guttman
> "TH" == Trey Harris <[EMAIL PROTECTED]> writes: TH> In a message dated 27 Aug 2002, Uri Guttman writes: >> m{^\s* $stuff := [ "(.*?)" | (\S+) ] }; TH> Or, how about TH> my ($fields) = /( '"')>|\S+)/; wouldn't quotelike automatically be inherited from the CORE:: rules like UNIVE

Re: Hypothetical synonyms

2002-08-27 Thread Trey Harris
In a message dated 27 Aug 2002, Uri Guttman writes: > m{^\s* $stuff := [ "(.*?)" | (\S+) ] }; Or, how about my ($fields) = /( '"')>|\S+)/; ? :-) Trey

Re: Hypothetical synonyms

2002-08-27 Thread Uri Guttman
> "LW" == Larry Wall <[EMAIL PROTECTED]> writes: LW> That seems like a lot of extra work. I'd prefer to see something like: LW> my stuff; LW> m{^\s*[ LW> "$stuff:=(.*?)" | LW>$stuff:=(\S+) LW> ]}; couldn't that be reduced to: m{^\s* $stu

Re: Hypothetical synonyms

2002-08-27 Thread Larry Wall
On 27 Aug 2002, Aaron Sherman wrote: : I just wrote this code in Perl5: : : $stuff = (defined($1)?$1:$2) if /^\s*(?:"(.*?)"|(\S+))/; : : This is a common practice for me when I parse configuration and data : files whose formats I define. It's nice to be able to quote fields that : have space

Hypothetical synonyms

2002-08-27 Thread Aaron Sherman
I just wrote this code in Perl5: $stuff = (defined($1)?$1:$2) if /^\s*(?:"(.*?)"|(\S+))/; This is a common practice for me when I parse configuration and data files whose formats I define. It's nice to be able to quote fields that have spaces, and this is an easy way to parse the result. In

Re: auto deserialization

2002-08-27 Thread Jonathan Scott Duff
On Tue, Aug 27, 2002 at 02:50:27PM -0700, Steve Canfield wrote: > Will there be automatic calling of the deserialization method for objects, > so that code like this DWIMs... > > my Date $bday = 'June 25, 2002'; What sort of dwimmery do you desire? It's my understanding that variable declara

Re: auto deserialization

2002-08-27 Thread Michael G Schwern
On Tue, Aug 27, 2002 at 02:50:27PM -0700, Steve Canfield wrote: > Will there be automatic calling of the deserialization method for objects, > so that code like this DWIMs... > > my Date $bday = 'June 25, 2002'; Err... what do you mean it to do? -- Michael G. Schwern <[EMAIL PROTECTED]>

auto deserialization

2002-08-27 Thread Steve Canfield
Will there be automatic calling of the deserialization method for objects, so that code like this DWIMs... my Date $bday = 'June 25, 2002'; _ Send and receive Hotmail on your mobile device: http://mobile.msn.com

Re: Perl 6 Summary For Week Ending 2002-08-25

2002-08-27 Thread Leopold Toetsch
Piers Cawley wrote: ( a lot ;-) Thanks for this really informative summary. Must be a lot of work. > ... Actually, Leopold was something of a patch monster this week, Of course, you missed all my private mails to Sean WRT imcc & perl6 patches ;-) > If I read his post right, Leopol

Re: rule, rx and sub

2002-08-27 Thread Trey Harris
In a message dated Tue, 27 Aug 2002, Luke Palmer writes: > No, it's right. But it doesn't break that. In the grammar, C-like > languages include (something like): > > statement: expression ';' > statement: if expression block > > So an if _statement_ terminates itself. The } on a line

Re: rule, rx and sub

2002-08-27 Thread Sean O'Rourke
On Tue, 27 Aug 2002, Luke Palmer wrote: > No, it's right. But it doesn't break that. In the grammar, C-like > languages include (something like): > > statement: expression ';' > statement: if expression block > > So an if _statement_ terminates itself. The } on a line of its own is a

Re: rule, rx and sub

2002-08-27 Thread Luke Palmer
On Tue, 27 Aug 2002, Sean O'Rourke wrote: > On Tue, 27 Aug 2002, Luke Palmer wrote: > > On 27 Aug 2002, Piers Cawley wrote: > > > Damian Conway <[EMAIL PROTECTED]> writes: > > > > Debbie Pickett asked: > > > > > (Offtopic: can I say: > > > > > $c = -> $xyz { mumble } > > > > > > > > Yes. Though

Re: rule, rx and sub

2002-08-27 Thread Sean O'Rourke
On Tue, 27 Aug 2002, Luke Palmer wrote: > On 27 Aug 2002, Piers Cawley wrote: > > Damian Conway <[EMAIL PROTECTED]> writes: > > > Debbie Pickett asked: > > > > (Offtopic: can I say: > > > > $c = -> $xyz { mumble } > > > > > > Yes. Though you need a semicolon at the end unless its the last > > >

Re: Inlining subrules

2002-08-27 Thread Bart Schuller
On Tue, Aug 27, 2002 at 12:21:00PM +0100, Piers Cawley wrote: > *allowing* classes to be frozen) makes life very hard indeed. And no, > extending via inheritance really doesn't cut it, unless I'm allowed to > say C and force everything that inherits from > Object to inherit from NewObject instead.

Re: rule, rx and sub

2002-08-27 Thread Luke Palmer
On 27 Aug 2002, Piers Cawley wrote: > Damian Conway <[EMAIL PROTECTED]> writes: > > Debbie Pickett asked: > > > (Offtopic: can I say: > > > $c = -> $xyz { mumble } > > > > Yes. Though you need a semicolon at the end unless its the last > > statement in a block. > > Um... when did that rule co