Re: RFC 115 (v1) Default methods for objects

2000-08-17 Thread David L. Nicol
Perl6 RFC Librarian wrote: > =head1 TITLE > > Default methods for objects > > =head1 ABSTRACT > > This RFC proposes syntactic support for default methods > that can be defined for blessed references. This would > allow the brackets C<()>, C<{}> and C<[]> to be used > for a variety of convenien

new list: perl6-language-data@perl.org

2000-08-17 Thread Ask Bjoern Hansen
subscribe by sending mail to [EMAIL PROTECTED] more information at http://dev.perl.org/lists LIST: perl6-language-data CHAIR: Jeremy Howard <[EMAIL PROTECTED]> MISSION:Discuss and draft RFCS for Perl 6 language features related to the Perl Data Languag

Re: RFC 105 (v1) Downgrade or remove "In string @ must be \@"error

2000-08-17 Thread David L. Nicol
Glenn Linderman wrote: > > Peter Scott wrote: > > > I have often wished that digraphs were not bundled with variables in this > > respect, i.e., I wanted to put a string containing \n inside single quotes > > just 'cuz it didn't contain variables to be interpolated. Whether there's > > a way of

Re: McNamara's C<$#> as a property of any array element

2000-08-17 Thread Mike Pastore
"David L. Nicol" wrote: > > What if its a method of anything in an array? $_ is already > a reference to the object on the array in for loops rather > than a copy of it. What if we make change be not something about > for loops, but about anything in an array? > > print "The index, in

Re: Permanent sublists (was Re: Language WG report, August 16th 2000)

2000-08-17 Thread skud
>>-io = ALL I/O issues, like open/socket/filehandles >>-subs = ALL sub/method/func issues, like lvalue subs >>-strict = ALL lexical/global variable scoping issues >>-objects = ALL OO and module issues >>-flow = ALL flow/threading issues >>-errors = ALL er

Re: $!

2000-08-17 Thread skud
On Thu, Aug 17, 2000 at 09:19:20AM -0700, Peter Scott wrote: > >I realize this is very pedestrian compared to the exception-handling stuff >we've been tossing around, which could largely be said to render the issue >moot; but I thought I'd shake the branches anyway and see what fell out. > >I'm

Re: RFC 99 (v2) Standardize ALL Perl platforms on UNIX epoch

2000-08-17 Thread skud
This discussion should be on the -datetime sublist. Please do not discuss this RFC any further on the main language list. K. -- Kirrily Robert -- <[EMAIL PROTECTED]> -- http://netizen.com.au/ Open Source development, consulting and solutions Level 10, 500 Collins St, Melbourne VIC 3000 Phone:

Re: implied pascal-like "with" or "express"

2000-08-17 Thread Damian Conway
> Mmm... yummy... And placeholder names seem to be getting a real > role in life too! I wonder if hashes used as HOF arguments in > general should use placeholder names to fill in their arguments > from the corresponding hash elements. That would be even yummier! Personally I think an

Re: implied pascal-like "with" or "express"

2000-08-17 Thread Jeremy Howard
Damian Conway wrote: > Suppose C were a built-in function with parameter list: > > sub with (\%; ^&) {...} > > That is, C takes an explicit hash and -- optionally -- a block, sub ref, > or higher order function. > <...> > If C is called with *both* a hash and a block/sub ref/h.o.f. as > arguments,

Re: implied pascal-like "with" or "express"

2000-08-17 Thread Damian Conway
> On Thu, Aug 17, 2000 at 10:48:25PM -0500, David L. Nicol wrote: > > Lets use hats again then. > > > > %ws{ > > print ^$height; #prints $ws{height} > > print $height; # perl5 visibility rules > > }; > > But no $ for the keys of %ws. > >

Re: implied pascal-like "with" or "express"

2000-08-17 Thread David L. Nicol
Jonathan Scott Duff wrote: > But no $ for the keys of %ws. > > %ws { > print ^height; # prints $ws{height} > print $height; # prints $height > } I'm thinking that ^name is short for $^name is short for ${^name} and the longer version is what you

Re: implied pascal-like "with" or "express"

2000-08-17 Thread Jonathan Scott Duff
On Thu, Aug 17, 2000 at 10:48:25PM -0500, David L. Nicol wrote: > Lets use hats again then. > > %ws{ > print ^$height; #prints $ws{height} > print $height; # perl5 visibility rules > }; But no $ for the keys of %ws. %ws { print ^heigh

immediate "with" syntax and Sort order for any hash

2000-08-17 Thread David L. Nicol
Damian Conway wrote: > Actually, no I wouldn't. > I'd be happier if it were more explicit. > > How about: > > keys %professors = ^a->name cmp ^b->name; > > keys %students = $$students{^1}{GPA} <=> $$students{^0}{GPA} }; > > ;-) > > Damian Okay, let's see what you've got here

Re: implied pascal-like "with" or "express"

2000-08-17 Thread Damian Conway
> Lets use hats again then. > >%ws{ >print ^$height; #prints $ws{height} >print $height; # perl5 visibility rules >}; > > AFAIK, the entirety of %name{something here} is unplowed ground, as > far as perl syntax goes. For good reason, A

Re: implied pascal-like "with" or "express"

2000-08-17 Thread David L. Nicol
Jeremy Howard wrote: > > This is one of those > few cases where VB has nicer syntax--within a 'with' block you have to > precede a property name with '.' to get the with block scope: > > dim height as double > dim ws as new Excel.worksheet // 'worksheet' has a 'height' property > > with

Re: implied pascal-like "with" or "express"

2000-08-17 Thread Jeremy Howard
David L. Nicol wrote: > Yes, absolutely, about the semantics. > > About the syntax, how about just in a block behind %HASHNAME? > > (as long as it doesn't use $a and $b, of course ) > (or if the insta-sort thing needs "sort" written in and this doesn't) > > %record{ > > $something_new = 3; # just

Re: RFC 104 (v1) Backtracking

2000-08-17 Thread David L. Nicol
Jonathan Scott Duff wrote: > > On Tue, Aug 15, 2000 at 05:47:53PM -0600, Nathan Torkington wrote: > > I want > > @result = @a || @b; > > to be like: > > (@result = @a) or (@result = @b); > > > > That's what all my students keep expecting it to mean. > > And that's what I keep wishing it mea

implied pascal-like "with" or "express"

2000-08-17 Thread David L. Nicol
Yes, absolutely, about the semantics. About the syntax, how about just in a block behind %HASHNAME? (as long as it doesn't use $a and $b, of course ) (or if the insta-sort thing needs "sort" written in and this doesn't) %record{ $something_new = 3; # just set $rec

McNamara's C<$#> as a property of any array element

2000-08-17 Thread David L. Nicol
What if its a method of anything in an array? $_ is already a reference to the object on the array in for loops rather than a copy of it. What if we make change be not something about for loops, but about anything in an array? print "The index, in its array, of <<$_>> is $CORE::ARRAY

Re: RFC 124 (v1) Sort order for any hash

2000-08-17 Thread Damian Conway
> >>%professors{ $a->name cmp $b->name }; > >> > >>%students{ $$students{$b}{GPA} <=> $$students{$a}{GPA} }; > > > > These already mean something. Please don't "special-case" them. > > No they don't. Apologies. You're quite correct. > > Isn't this b

Re: RFC 124 (v1) Sort order for any hash

2000-08-17 Thread David L. Nicol
Damian Conway wrote: > >>%professors{ $a->name cmp $b->name }; >> >>%students{ $$students{$b}{GPA} <=> $$students{$a}{GPA} }; > > These already mean something. Please don't "special-case" them. No they don't. [david@nicol1 perl]$ perl -le '%nums = (1..20); print %nums{1}' C

Re: RFC 126 (v1) Ensuring Perl's object-oriented future

2000-08-17 Thread Damian Conway
I'd like to say that I whole-heartedly endorse the sentiments expressed in this RFC (and *not* just because it likes my book! ;-) It will definitely underpin my thinking when I finally put together my own OO RFCs. Well done, John. Damian

Re: pascal-like "with" was Re: Default filehandles(was Re: commandline option: $|++)

2000-08-17 Thread Damian Conway
> > print sub { > > return < > Dear $_[0] > > Your tuition is now due. Please send in a payment of at least > > $_[1]. > > SPAM > > } > > What does the second one mean, then? Doesn't > > print sub { ... }

Re: RFC 81 (v2) Lazily evaluated list generation functions

2000-08-17 Thread David L. Nicol
> This RFC proposes that the existing C<..> operator produce a lazily > evaluated list. In addition, a new operation C<:> is proposed that allows > for the generation of lazily evaluated lists based on any Perl expression. Llama 2nd ed. calls ? the "lazy operator" w/in regexes, in my lazy props

Re: Ideas that need RFCs?

2000-08-17 Thread Steve Fink
Decklin Foster wrote: > > [replying from here since this is the only way I received it] > > > "Myers, Dirk" wrote: > > > > > > $line/pattern/ ; > > > > > /pattern/ ($line) ; > > I don't think these should be changed. Here's how I tend to pronouce > things: > > $x = 'foo'; #

Re: Ideas that need RFCs?

2000-08-17 Thread Steve Fink
Nathan Wiger wrote: > > We're getting deluged with RFC's and emails. We should start thinking > "will this RFC or idea *add value* to Perl 6?". If not, and it just > makes something work differently, it _might_ not be worth an RFC. I disagree completely. For one thing, there's no such thing as P

Re: pascal-like "with" was Re: Default filehandles(was Re: commandline option: $|++)

2000-08-17 Thread Robert Mathews
Damian Conway wrote: > This: > > print < Dear ^name: > Your tuition is now due. Please send in a payment of at least > ^minumum. > SPAM > > already means: > > print sub { > return < Dear $_[0] > Your tuition is now

Re: RFC 84 (v1) Replace => (stringifying comma) with =>

2000-08-17 Thread Uri Guttman
> "RA" == Russ Allbery <[EMAIL PROTECTED]> writes: RA> Damien Neil <[EMAIL PROTECTED]> writes: >> Arrays are ordered. Hashes are not. Sure, you can iterate over a hash, >> but add an element to one and you can change the order of everything in >> it. RA> Formally, I believe it's

Re: Ideas that need RFCs?

2000-08-17 Thread Decklin Foster
[replying from here since this is the only way I received it] > "Myers, Dirk" wrote: > > > > $line/pattern/ ; > > > /pattern/ ($line) ; I don't think these should be changed. Here's how I tend to pronouce things: $x = 'foo'; # "x gets foo" /bar/;# "match on bar"

Re: RFC 123 (v1) Builtin: lazy

2000-08-17 Thread Tom Hughes
In message <[EMAIL PROTECTED]> Perl6 RFC Librarian <[EMAIL PROTECTED]> wrote: > Rather than indicating that lazy evaluation is required by the > addition of incomprehensible syntactic hints, a "lazy array context" > is indicated by the presence of the new keyword C. I think I've actual

Re: RFC 124 (v1) Sort order for any hash

2000-08-17 Thread Tom Hughes
In message <[EMAIL PROTECTED]> Perl6 RFC Librarian <[EMAIL PROTECTED]> wrote: > A "sort function" will need to be added into the list of magics > maintained for every associative array. > > A set of macros in terms of sort will need to be defined which > replace keys, values, and each f

Re: pascal-like "with" was Re: Default filehandles(was Re: commandline option: $|++)

2000-08-17 Thread Dave Storrs
On Thu, 17 Aug 2000, John Porter wrote: > Huh? They need to be "globals", because the "with" mechanism > is going to have to be able to write them into a symbol table. > You can't do this with lexicals. (Well, maybe that'll be different > in perl6?) Well, if you're using the HOF nota

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread Damien Neil
On Thu, Aug 17, 2000 at 03:10:44PM -0700, Steve Fink wrote: > My proposal would be what I implemented for perl5 a while back (Sarathy > didn't dislike it, but wasn't convinced enough to put it in): all > dereferencing can be done with ->. > > $x->@ is the same as @$x > $x->% is the same as %$x >

Re: RFC 91 (v1) Builtin: partition

2000-08-17 Thread Jeremy Howard
Stephen P. Potter wrote: > Lightning flashed, thunder crashed and "Jeremy Howard" <[EMAIL PROTECTED]> whispered: > | No. They are lazily evaluated and require special optimisations to allow > > I don't completely understand this whole lazy evaluation, so I'm confused > how these functions would wo

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread Steve Fink
Karl Glazebrook wrote: > > Ariel Scolnicov wrote: > > > > Karl Glazebrook <[EMAIL PROTECTED]> writes: > > > > [...] > > > > > o Why do I think perl has too much line noise? Because of code like this: > > > > > > @{$x->{$$fred{Blah}}}[1..3] > > > > This is indeed horrible. However, I fail to se

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread Steve Fink
Ted Ashton wrote: > > > But the most direct way to measure how well the > > language slides into people's heads is by seeing how hard it is for them > > to get the hang of it. > > Nope. I've yet to be convinced that "fits in your head" is the same as > "went in easily". Hang

Re: Ideas that need RFCs?

2000-08-17 Thread Nathan Wiger
> I certainly don't want m, tr, or s to go away > (or /regex/ either.) But the =~ bothers me. I don't think we should change everything. There's a big risk that we get "fix-happy" and change stuff that doesn't really make an improvement. Personally, I like =~ because it has a nice analogy to the

RFC 23 (v3) Higher order functions

2000-08-17 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Higher order functions =head1 VERSION Maintainer: Damian Conway <[EMAIL PROTECTED]> Date: 4 August 2000 Last Modified: 17 August 2000 Version: 3 Mailing List: [EMAIL PROTECTED] Number: 23 =head

Re: Ideas that need RFCs?

2000-08-17 Thread Steve Fink
(I'm assuming you intended this for perl6-language) "Myers, Dirk" wrote: > > > I certainly don't want m, > > tr, or s to go away (or /regex/ either.) But the =~ bothers me. How > > about disallowing m{...} and using m{expr}/.../? > > How about this, for the really compact way to do it: > >

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread David Corbin
David Corbin wrote: > > Ariel Scolnicov wrote: > > > > > > So how do I make C into an array in the first place? Well, I say > > something like C. But wait -- that's ambiguous! Is > > C now a copy of the list (1,2,3) (in which case it's an array), > > or is it a reference to (1,2,3) (in which c

READ THIS: Take it to -objects! (was Re: RFC 126 (v1) Ensuring Perl's object-oriented future)

2000-08-17 Thread Nathan Wiger
Everyone: Please continue this discussion on -objects. Thanks. -Nate Perl6 RFC Librarian wrote: > > This and other RFCs are available on the web at > http://dev.perl.org/rfc/ > > =head1 TITLE > > Ensuring Perl's object-oriented future > > =head1 VERSION > > Maintainer: John Siracusa

Re: RFC 124 (v1) Sort order for any hash

2000-08-17 Thread Damian Conway
>%professors{ $a->name cmp $b->name }; > >%students{ $$students{$b}{GPA} <=> $$students{$a}{GPA} }; These already mean something. Please don't "special-case" them. Isn't this better handled with a (revamped and faster) tie? tie %professors, 'Tie::Sorted', ^a->name cmp

Re: Ideas that need RFCs?

2000-08-17 Thread Johan Vromans
"Stephen P. Potter" <[EMAIL PROTECTED]> writes: > * Socket functions (such as C, C, etc) should be moved from > the core to modules/libraries. > * Math functions (such as C, C, C, etc) should be moved > from the core to modules/libraries. > * IPC functions (such as C, C, C, etc) should be >

Re: pascal-like "with" was Re: Default filehandles(was Re: command line option: $|++)

2000-08-17 Thread Johan Vromans
John Porter <[EMAIL PROTECTED]> writes: > Huh? They need to be "globals", because the "with" mechanism > is going to have to be able to write them into a symbol table. > You can't do this with lexicals. Yes, you can. For an approach like this, the hash needs to be a pseudo-hash anyway. -- Joha

RFC 126 (v1) Ensuring Perl's object-oriented future

2000-08-17 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Ensuring Perl's object-oriented future =head1 VERSION Maintainer: John Siracusa <[EMAIL PROTECTED]> Date: Aug 16 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 126 =head1 ABS

Re: pascal-like "with" was Re: Default filehandles(was Re: command line option: $|++)

2000-08-17 Thread Clayton Scott
Damian Conway wrote: > So C is going to have to do some pretty freaky magic to work out > it should call that sub as part of the C. And call it with a > specifically ordered argument list. Yes, I never said it would work, just that it looked nicer :) > However, your suggestion *did* s

RFC 124 (v1) Sort order for any hash

2000-08-17 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Sort order for any hash =head1 VERSION Maintainer: David Nicol <[EMAIL PROTECTED]> Date: 17 Aug 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 124 =head1 ABSTRACT Herein a new syntax is

RFC 123 (v1) Builtin: lazy

2000-08-17 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Builtin: lazy =head1 VERSION Maintainer: David Nicol <[EMAIL PROTECTED]> Date: 17 Aug 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 123 =head1 ABSTRACT C is suggested as a keyword to m

RFC 122 (v1) types and structures

2000-08-17 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE types and structures =head1 VERSION Maintainer: David Nicol <[EMAIL PROTECTED]> Date: 17 Aug 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 122 =head1 ABSTRACT We adopt C base types, a

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread Karl Glazebrook
Ariel Scolnicov wrote: > > Karl Glazebrook <[EMAIL PROTECTED]> writes: > > [...] > > > o Why do I think perl has too much line noise? Because of code like this: > > > > @{$x->{$$fred{Blah}}}[1..3] > > This is indeed horrible. However, I fail to see how cutting out the > "line noise" would m

Re: pascal-like "with" was Re: Default filehandles(was Re: command line option: $|++)

2000-08-17 Thread Damian Conway
> > This seems less of a leap of logic/faith: > > %record = loadrecord($studentID); > > with %record { > > print < > Dear ^name: > > Your tuition is now due. Please send in a payment of at least > > ^minumum. > > SPAM > > }; "I do not thin' t

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread David Corbin
Ariel Scolnicov wrote: > > > So how do I make C into an array in the first place? Well, I say > something like C. But wait -- that's ambiguous! Is > C now a copy of the list (1,2,3) (in which case it's an array), > or is it a reference to (1,2,3) (in which case it's a scalar)? In the > first

Re: $!

2000-08-17 Thread Jarkko Hietaniemi
> This is one of the nice things about Python, in my opinion. Every > error is an exception, so you can feel free to completely ignore Like end of file? :-) > Hmm. It just occurred to me that you could combine your idea with > exceptions quite nicely: All core functions throw exceptions on > e

Re: Ideas that need RFCs?

2000-08-17 Thread Steve Fink
> On Thu, Aug 17, 2000 at 01:07:30PM -0400, Stephen P. Potter wrote: > > * Replace C, C, and C with equivalent regularized > > functions that take mulitple arguments instead of using specialized > > syntax. It would be best if the names could be more "complete", like > > match(), translate(

Re: $!

2000-08-17 Thread Damien Neil
On Thu, Aug 17, 2000 at 01:19:22PM -0500, Jarkko Hietaniemi wrote: > I recently suggested in p5p that for many system calls it could be > checked in *consta...darn, *compile* time whether they are used in > void contect, and _abort_. "No, I'm not going to let you get away > with doing a chdir() a

Re: Ideas that need RFCs?

2000-08-17 Thread Uri Guttman
> "SPP" == Stephen P Potter <[EMAIL PROTECTED]> writes: SPP> * The match operator, C, is always required (bare C SPP> becomes a fatal error). maybe SPP> * Replace C with flag to C, and remove special meaning SPP> of C. yes SPP> * Socket functions (such as C, C, etc) should be mo

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread Ted Ashton
Thus it was written in the epistle of Steve Fink, > Bah. I will claim neither that being easy to learn is Perl's main goal, > nor that I know what Perl's main goal is, but I have enough of an > intuition (or did I misspell "opinion"?) to assert that ease of learning > is a far more important _benc

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread Ariel Scolnicov
Karl Glazebrook <[EMAIL PROTECTED]> writes: [...] > o Why do I think perl has too much line noise? Because of code like this: > > @{$x->{$$fred{Blah}}}[1..3] This is indeed horrible. However, I fail to see how cutting out the "line noise" would make it easier to decipher (I can, however, se

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread Russ Allbery
Karl Glazebrook <[EMAIL PROTECTED]> writes: > o Why do I think perl has too much line noise? Because of code like this: > @{$x->{$$fred{Blah}}}[1..3] You're taking the value of the key "Blah" in the hash referred to by $fred and using it as the key into the hash referred to by $x, treating th

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread Steve Fink
Ted Ashton wrote: > > Thus it was written in the epistle of Russ Allbery, > > > > This falls firmly in the category of things that are powerful for > > experienced users of the language but may be somewhat difficult to learn. > > I don't think Perl has being easy to learn as it's primary goal, no

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread Karl Glazebrook
"Myers, Dirk" wrote: > > Karl Glazebrook wrote: > > > But what is $x[3] ? > > > It could be a scalar. > > > BUT it could be a reference to a list. > > > It could be a reference to a 2D PDL image. > > ... but references are scalar. So, $x[3] *is* a scalar. > > That scalar could be a refe

RE: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread Myers, Dirk
Karl Glazebrook wrote: > But what is $x[3] ? > It could be a scalar. > BUT it could be a reference to a list. > It could be a reference to a 2D PDL image. ... but references are scalar. So, $x[3] *is* a scalar. That scalar could be a reference to a list. It could be a reference to a 2D

Re: $!

2000-08-17 Thread Jarkko Hietaniemi
On Thu, Aug 17, 2000 at 09:19:20AM -0700, Peter Scott wrote: > Do we want to come up with any modifications to the scope of $! (I'm not > talking about the dual string-number nature)? I've occasionally been > flummoxed by looking at it when there hadn't really been an error (but it's > set any

Re: pascal-like "with" was Re: Default filehandles(was Re: command line option: $|++)

2000-08-17 Thread John Porter
Dave Storrs wrote: > On 17 Aug 2000, Johan Vromans wrote: > > Dave Storrs <[EMAIL PROTECTED]> writes: > > > > > 2) "express" should guarantee that, before it creates a variable > > > names $FOO, it first calls "local" on any existing $FOO > > > > Why, if the variable is lexical (see 3)? > > D

Re: Ideas that need RFCs?

2000-08-17 Thread Jonathan Scott Duff
On Thu, Aug 17, 2000 at 01:07:30PM -0400, Stephen P. Potter wrote: > * Replace C, C, and C with equivalent regularized > functions that take mulitple arguments instead of using specialized > syntax. It would be best if the names could be more "complete", like > match(), translate(), and sub

Re: pascal-like "with" was Re: Default filehandles(was Re: command line option: $|++)

2000-08-17 Thread Dave Storrs
This seems good...the HOF stuff seems to have pretty well accepted, and the thumbtack notation with it. Dave On Thu, 17 Aug 2000, Clayton Scott wrote: > > > On Wed, 16 Aug 2000, David L. Nicol wrote: > > > %record = loadrecord($studentID); > > > with %record

Re: pascal-like "with" was Re: Default filehandles(was Re: commandline option: $|++)

2000-08-17 Thread Dave Storrs
D'oh. s{2) .+^}{} Mismatch between brain and fingers there somewhere, thanks for pointing it out. Dave On 17 Aug 2000, Johan Vromans wrote: > Dave Storrs <[EMAIL PROTECTED]> writes: > > > 2) "express" should guarantee that, before it creates a v

Re: Ideas that need RFCs?

2000-08-17 Thread iain truskett
* Stephen P. Potter ([EMAIL PROTECTED]) [18 Aug 2000 03:06]: > I don't see these ideas in RFCs: [Reordered a bit and some items removed] > * Socket (such as C, C, etc) > * Math (such as C, C, C, etc) > * IPC (such as C, C, C, etc) > * "User" (C, , C, C) > * Group (C, C, C) > * Network (C, C, C,

Ideas that need RFCs?

2000-08-17 Thread Stephen P. Potter
I don't see these ideas in RFCs: * The match operator, C, is always required (bare C becomes a fatal error). * Replace C with flag to C, and remove special meaning of C. * Socket functions (such as C, C, etc) should be moved from the core to modules/libraries. * Math functions (such as C, C,

Re: pascal-like "with" was Re: Default filehandles(was Re: command line option: $|++)

2000-08-17 Thread Clayton Scott
Dave Storrs wrote: > > On Wed, 16 Aug 2000, David L. Nicol wrote: > > > Anyone for generalizing "select" to a more general "with" keyword > > which would operate on a limited hash and be syntactic sugar for > > replacing all appearances of unqualified variables that match > > the hash's keys wit

Re: pascal-like "with" was Re: Default filehandles(was Re: command line option: $|++)

2000-08-17 Thread Johan Vromans
Dave Storrs <[EMAIL PROTECTED]> writes: > 2) "express" should guarantee that, before it creates a variable > names $FOO, it first calls "local" on any existing $FOO Why, if the variable is lexical (see 3)? -- Johan

Re: RFC 56 (v2) Optional 2nd argument to C and C

2000-08-17 Thread Dave Storrs
On Wed, 16 Aug 2000, Glenn Linderman wrote: > > What should happen when the expression given to C, or > > C evaluates to a negative number? I see three options: [...] > > > > 3) C would then act as C and C would > >act as C > > > I like #3 too, does that make a better conse

Re: pascal-like "with" was Re: Default filehandles(was Re: commandline option: $|++)

2000-08-17 Thread Dave Storrs
On Wed, 16 Aug 2000, David L. Nicol wrote: > Anyone for generalizing "select" to a more general "with" keyword > which would operate on a limited hash and be syntactic sugar for > replacing all appearances of unqualified variables that match > the hash's keys with references into it? > >

$!

2000-08-17 Thread Peter Scott
Do we want to come up with any modifications to the scope of $! (I'm not talking about the dual string-number nature)? I've occasionally been flummoxed by looking at it when there hadn't really been an error (but it's set anyway, randomly it seems); or calling some module method that failed a

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread Syloke Soong
Data::Dumper has been a very useful list debugging tool, for a very unneccessary problem. What are these? $x[$a][$b] $x->[$a]->[$b] ${$x[$a]}->[$b] We wish to believe that there are no pointers in Perl, just references. We are lying to ourselves. The desire to have $x->[$a] rather than just $x

Re: Permanent sublists (was Re: Language WG report, August 16th2000)

2000-08-17 Thread Dave Storrs
On Wed, 16 Aug 2000, Nathan Wiger wrote: > "Bryan C. Warnock" wrote: > > > > ... is the cause for this. All the discussion is taking place in the > > master list before the sublists are spawned. You can only express the > > opinion that foo is not bar and never should be so many times. > > I

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread Nathan Torkington
John Porter writes: > > push is _not_ a method. @var is not an object. > > You are deluded. This is a highly unproductive avenue of discourse. Let the people who want to drop punctuation propose dropping punctuation. Arguing about it won't change their mind, but it will (a) piss everyone of

Re: RFC 82 (listops in list context)

2000-08-17 Thread Nathan Torkington
Chaim Frenkel writes: > The other magic variables would simply end up as some funny 8-bit > characters floating around. With one's handy (several thousand page) > translation table one can then interpret the meaning. That's insane. We're trying to get rid of special variables named after obscure

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread Karl Glazebrook
To go through a few points that has arisen: o Why do I think "@" is useless? OK clearly @x is a list. Good old perl4. But what is $x[3] ? It could be a scalar. BUT it could be a reference to a list. It could be a reference to a 2D PDL image. etc. so clearly we have no real i

Re: RFC 112 (v1) Assignment within a regex

2000-08-17 Thread Kevin Walker
I think hash assignment within regex's would be more useful than variable assignment (though there's no reason there couldn't be both, I suppose). Here's a copy of something I sent to p5p a while back: I suggest that (?%field_name: pattern) spit out 'field_name', in addition to the matched p

Re: RFC 84 (v1) Replace => (stringifying comma) with =>

2000-08-17 Thread John Porter
Chaim Frenkel wrote: > > In a hash exists() is a valid concept. In an array (even a sparse one) > exists() has no meaning. The data is always there. The sparsity is > an implementational detail. WADR, exists() could -- even if it doesn't currently -- have a defined meaning for arrays: m

Re: Multiway comparisons

2000-08-17 Thread John Porter
raptor wrote: > RFC 25 (v1): Multiway comparisons > ... > I think the idea of leaving the value "j" in "i > j" is cool... RFC 84. -- John Porter

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread Ariel Scolnicov
John Porter <[EMAIL PROTECTED]> writes: > Ariel Scolnicov wrote: > > John Porter <[EMAIL PROTECTED]> writes: > > > foo = bar; > > > > > > foo could be just about anything: a string, a hashref, some other > > > blessed ref (with op"=" possibly overloaded!), or even an lvalue sub. > > > Do you k

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread John Porter
Jon Ericson wrote: > John Porter wrote: > > ...all variable types (scalar, array, hash) are simply objects. > > Not in Perl. Yes, in perl. > $dog and $cat are objects. $dog can bark and $cat can scratch. The > author of the module (Zoo::Animal?) should have documented these > methods. And

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread John Porter
Mike Pastore wrote: > On Wed, 16 Aug 2000, John Porter wrote: > > grep() always treats its "second" arg as a list, even if it's a scalar, > > or some other list-of-one (or none); and grep() always returns a list, > > even if it's a list of one (or none). > > True on the first part, false on the s

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread John Porter
Ariel Scolnicov wrote: > John Porter <[EMAIL PROTECTED]> writes: > > foo = bar; > > > > foo could be just about anything: a string, a hashref, some other > > blessed ref (with op"=" possibly overloaded!), or even an lvalue sub. > > Do you know? Should you care? > > I don't know, but I think

Re: RFC 91 (v1) Builtin: partition

2000-08-17 Thread Stephen P. Potter
Lightning flashed, thunder crashed and "Jeremy Howard" <[EMAIL PROTECTED]> whispered: | No. They are lazily evaluated and require special optimisations to allow I don't completely understand this whole lazy evaluation, so I'm confused how these functions would work on them. Explain to me how you

Re: RFC 111 (v1) Whitespace and Here Docs

2000-08-17 Thread Philip Newton
On Tue, 15 Aug 2000, Michael Fowler wrote: > So what's insufficient about: > > print <<"EOF"; > Stuff > More stuff > Even more stuff > EOF Others have already mentioned the "have to count the number of spaces" argument. Another one that comes to mind is: assu

Re: RFC 99 (v2) Standardize ALL Perl platforms on UNIX epoch

2000-08-17 Thread Philip Newton
On 16 Aug 2000, Chaim Frenkel wrote: > > "BB" == Buddha Buck <[EMAIL PROTECTED]> writes: > > BB> I am assuming that the system clocks are set accurately to UTC (or some > BB> derivative, like (US) Eastern Standard Time). UTC is what time-servers > BB> report. UTC has leap seconds, which a

Re: RFC 114 (v1) Perl resource configuration

2000-08-17 Thread Ariel Scolnicov
Jonathan Scott Duff <[EMAIL PROTECTED]> writes: > On Wed, Aug 16, 2000 at 01:07:24PM -0700, Peter Scott wrote: > > At 08:03 PM 8/16/00 +, Perl6 RFC Librarian wrote: > > >Perl should provide a mechanism to have common code autoloaded from a > > >file. > > > > Please, no. It's the ultimate sc

Multiway comparisons

2000-08-17 Thread raptor
RFC 25 (v1): Multiway comparisons and now snip from the Icon language : http://www.cs.arizona.edu/icon/docs/ipd266.htm 2.1 Conditional Expressions In Icon there are conditional expressions that may succeed and produce a result, or may fail and not produce any result. An example is the compariso

Re: RFC 104 (v1) Backtracking :ref

2000-08-17 Thread raptor
=head1 REFERENCE Icon language brief intro : http://www.cs.arizona.edu/icon/intro.htm

Re: RFC 76 (v1) Builtin: reduce

2000-08-17 Thread Ariel Scolnicov
Nathan Torkington <[EMAIL PROTECTED]> writes: > Piers Cawley writes: > > > > The $a and $b of the sort comparator were A Bad Idea to begin with. > > > > > > Ditto. Can we ditch these in Perl 6? Don't see why $_[0] and $_[1] can't > > > be used, or even a more standard $1 and $2. Either one makes

Re: RFC 104 (v1) Backtracking

2000-08-17 Thread raptor
hi, > > So how is that different from: > > > > do BLOCK1 until do BLOCK2 > > It's the same. > But the real fun starts when blocks and functions can suspend and > resume. > >{ ... > # Return value and suspend. > suspend $i; > # Next iteration will resume here > ... >} a

Re: RFC 104 (v1) Backtracking:example

2000-08-17 Thread raptor
hi jeremy, all, here is one simple example , let say we have this XML file: how we can implement the following XPath expression - "file://code" I'm giving here very simplified example (orthen works as shown in first interpretation i

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread Ariel Scolnicov
John Porter <[EMAIL PROTECTED]> writes: > Bryan C. Warnock wrote: > > > > Composer::Post.assumes(Iterator.each(Iterator.all(List)=="Programmers") > > ->programs=(Language::Programming.uses("Perl")==true && > > Methodology.implemented(Style.OO==true,Time.all==true)))==true; > > Not at al

Re: RFC 114 (v1) Perl resource configuration

2000-08-17 Thread Hildo Biersma
> =head1 DESCRIPTION > > Many other programs have so called "resource configuration" files (at > least that's what I call them) that are loaded and interpretted upon > program startup. Some example programs that have this ability include > bash, mutt, and python. Perl should do the same. > > A

Re: RFC 114 (v1) Perl resource configuration

2000-08-17 Thread Hildo Biersma
Steve Simmons wrote: > > On Wed, Aug 16, 2000 at 08:03:31PM -, Perl6 RFC Librarian wrote: > > > Perl should provide a mechanism to have common code autoloaded from a > > file. . . . > > > A C file could be used to set system-wide defaults that > > the system administrator would like to prom

Re: Permanent sublists (was Re: Language WG report, August 16th2000)

2000-08-17 Thread Ask Bjoern Hansen
On Wed, 16 Aug 2000, Peter Scott wrote: [...] > >Ask, can you change the deadlines on these lists to be "as long as it > >takes" or similar? > > Sorry I didn't chime in earlier, but I would like to say that I prefer > published deadlines. Reason: people will talk for as long as you give > 'em