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

2000-08-16 Thread skud
On Wed, Aug 16, 2000 at 11:15:40PM -0700, Peter Scott wrote: > >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. However long a meeting is scheduled for, that's how long it will >take. We're al

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

2000-08-16 Thread Peter Scott
At 04:12 PM 8/17/00 +1000, [EMAIL PROTECTED] wrote: >On Wed, Aug 16, 2000 at 10:35:09AM -0700, Nathan Wiger wrote: > >I agree. I think the trend should be to establish some permanent > >sublists, which we're informally leaning towards already. Something > >like: > > > > -io = ALL I/O issue

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

2000-08-16 Thread skud
On Wed, Aug 16, 2000 at 10:35:09AM -0700, Nathan Wiger wrote: >I agree. I think the trend should be to establish some permanent >sublists, which we're informally leaning towards already. Something >like: > > -io = ALL I/O issues, like open/socket/filehandles > -subs = ALL sub/method/

Re: RFC 107 (v1) lvalue subs should receive the rvalue as an argument

2000-08-16 Thread skud
On Tue, Aug 15, 2000 at 08:05:25PM -, Perl6 RFC Librarian wrote: >=head1 TITLE > >lvalue subs should receive the rvalue as an argument > >=head1 VERSION > >Maintainer: Andy Wardley <[EMAIL PROTECTED]> >Date: 15 Aug 2000 >Version: 1 >Mailing List: [EMAIL PROTECTED] >Number:

Re: error handling and syntax extension

2000-08-16 Thread skud
On Wed, Aug 16, 2000 at 12:15:30PM -0500, David L. Nicol wrote: > >If "catch" can be defined DURING PARSING > >and SYNTAX ERRORS are catchable > >error handling can be used to define otherwise >undefined syntax, becoming a macro language. Please take this to the -errors sublist. Thanks... K. -

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

2000-08-16 Thread Henrik Tougaard
Jarkko Hietaniemi [mailto:[EMAIL PROTECTED]] wrote: > > On Wed, Aug 16, 2000 at 09:49:36AM -0400, Stephen P. Potter wrote: > > Lightning flashed, thunder crashed and Jonathan Scott Duff > <[EMAIL PROTECTED]> whispered: > > | Um, it's not guaranteed to blow up in 2038. That's an > implementatio

RFC 113 (v2) Better constants and constant folding

2000-08-16 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Better constants and constant folding =head1 VERSION Maintainer: John Siracusa <[EMAIL PROTECTED]> Date: Aug 15 2000 Last-Modified: Aug 16 2000 Version: 2 Mailing List: [EMAIL PROTECTE

Hashes vs arrays (was Re: RFC 84 (v1) Replace => (stringifying comma) with =>)

2000-08-16 Thread Jeremy Howard
Chaim Frenkel wrote: > > "KH" == Kai Henningsen <[EMAIL PROTECTED]> writes: > > KH> Hashes and arrays, OTOH, really aren't different for people. The concept > KH> of an index needing to be a nonnegative number is a computer concept. > > I don't know about that. Good old PL/I had arbitrary rang

Re: Make lvalue subs the default (was Re: RFC 107 (v1) lvalue subs should receive the rvalue as an argument)

2000-08-16 Thread Chaim Frenkel
> "NW" == Nathan Wiger <[EMAIL PROTECTED]> writes: NW> The concept isn't that hard ":lvalue makes it so you can assign to NW> subs". But the hard part is deciding *where* it should be used. I think NW> it puts an unfair burden on a CPAN author to try and forsee all the NW> possible uses of a

Re: RFC 83 (v2) Make constants look like variables

2000-08-16 Thread Chaim Frenkel
> "JS" == John Siracusa <[EMAIL PROTECTED]> writes: JS> On 8/16/00 12:37 PM, Perl6 RFC Librarian wrote: >> It is proposed that a new syntax for declaring constants be introduced: >> >> my $PI : constant = 3.1415926; >> my @FIB : constant = (1,1,2,3,5,8,13,21); >> my %ENG_ERRORS : constant =

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

2000-08-16 Thread Chaim Frenkel
> "KH" == Kai Henningsen <[EMAIL PROTECTED]> writes: KH> Hashes and arrays, OTOH, really aren't different for people. The concept KH> of an index needing to be a nonnegative number is a computer concept. I don't know about that. Good old PL/I had arbitrary ranges for array indices. Hmm, I

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

2000-08-16 Thread Chaim Frenkel
> "JSD" == Jonathan Scott Duff <[EMAIL PROTECTED]> writes: JSD> On Wed, Aug 16, 2000 at 12:48:12PM -0400, Dan Sugalski wrote: >> At 11:09 AM 8/16/00 -0400, John Porter wrote: >> >The difference between numbers and strings is analogous to -- >> >or, on further reflection, IDENTICAL to -- the d

Re: RFC 111 (v1) Whitespace and Here Docs

2000-08-16 Thread Bryan C . Warnock
On Wed, 16 Aug 2000, Perl6 RFC Librarian wrote: > This will ignore all leading white space on each line until the end terminator > is found. It effectively does s/^\s*// before processing each following line. I don't agree with this, but > It also ignores whitespace (but not the line termi

Re: Default filehandles(was Re: command line option: $|++)

2000-08-16 Thread Nathan Wiger
Chaim Frenkel wrote: > > NW> P.S. If you're not on -io, this implicitly means you DON'T CARE and are > NW> willing to accept whatever we come up with. So, everyone that's > NW> interested please get on -io. Thanks again. > > That's a bit strong. All we are doing is filtering the garbage for Larr

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

2000-08-16 Thread Nathan Wiger
> Either one or both of: > Perl <-> Perl cross system will break. > Perl <-> other program same system will break. > > Pick your poison. I'd rather have cross system break. But if the > epoch were available then an adjustment could be made intellegently. I'd take choice (b). I wa

Re: RFC 111 (v1) Whitespace and Here Docs

2000-08-16 Thread Michael Fowler
On Wed, Aug 16, 2000 at 08:22:16PM -0400, Chaim Frenkel wrote: > > "MF" == Michael Fowler <[EMAIL PROTECTED]> writes: > > MF> So what's insufficient about: > > MF> print <<"EOF"; > MF> Stuff > MF> More stuff > MF> Even more stuff > MF> EOF > > > Counting

Re: RFC 111 (v1) Whitespace and Here Docs

2000-08-16 Thread Chaim Frenkel
> "MF" == Michael Fowler <[EMAIL PROTECTED]> writes: MF> So what's insufficient about: MF> print <<"EOF"; MF> Stuff MF> More stuff MF> Even more stuff MF> EOF Counting spaces, why make the programer work. Are those tabs or spaces? And it doesn't strip t

Re: RFC 82 (listops in list context)

2000-08-16 Thread Chaim Frenkel
> "NT" == Nathan Torkington <[EMAIL PROTECTED]> writes: NT> Chaim Frenkel writes: >> [use wacky Unicode characters for new operators] >> I can see that this would give problems for current editors and displays, >> but by the time perl6 comes out, perhaps the situation would be better. NT> No

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

2000-08-16 Thread Chaim Frenkel
> "BB" == Buddha Buck <[EMAIL PROTECTED]> writes: BB> stat() returns time stamps (made in the past). utime() sets time BB> stamps. They should be compatible with time(). e.g., "utime BB> time,time,@files" should still set the modify and access times of BB> @files to "now". With or without

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

2000-08-16 Thread Damien Neil
On Wed, Aug 16, 2000 at 05:36:25PM -0400, Karl Glazebrook wrote: > My take: I like perl, I don't mind it the way it is. But I'd be happier if > it was a lot more like python! (indentation aside) Why, then, don't you just use Python? I'm not being sarcastic. Python is a very good language. It h

Re: Default filehandles(was Re: command line option: $|++)

2000-08-16 Thread Chaim Frenkel
> "NW" == Nathan Wiger <[EMAIL PROTECTED]> writes: NW> P.S. If you're not on -io, this implicitly means you DON'T CARE and are NW> willing to accept whatever we come up with. So, everyone that's NW> interested please get on -io. Thanks again. That's a bit strong. All we are doing is filterin

Re: Language WG report, August 16th 2000

2000-08-16 Thread Chaim Frenkel
> "TB" == Tim Bunce <[EMAIL PROTECTED]> writes: TB> On Wed, Aug 16, 2000 at 05:23:04PM +1000, [EMAIL PROTECTED] wrote: >> OK, weekly report. Ugh. TB> Shouldn't these to go -announce as well? I thought we agreed that they percolate upward. The containing WG would report the results upward

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

2000-08-16 Thread Damien Neil
On Wed, Aug 16, 2000 at 09:04:00PM +0200, Kai Henningsen wrote: > And context dependency is bad for people. Actually, people deal very well with context dependency. "Have you paid Bill?" "Have you paid that bill?" "It looks like a duck's bill." "The President vetoed the bill." > A rose

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

2000-08-16 Thread Damien Neil
On Wed, Aug 16, 2000 at 05:34:51PM -0400, Karl Glazebrook wrote: > > You appear to arguing that expressions in function argument lists should > > not be evaluated in a list context. Is this really what you mean? > > I guess I do. I guess I just hate contexts! Context is a fundemental part of Pe

Re: RFC 114 (v1) Perl resource configuration

2000-08-16 Thread Casey R. Tweten
Today around 7:17pm, Casey R. Tweten hammered out this masterpiece: : Today around 2:34pm, Nathan Wiger hammered out this masterpiece: : : : > Think on this: : : > : : > use perlrc qw/Resource1 Resource5/; # Import only named 'Resources' : : > : : > use perlrc qw/:all/;# Import

Re: RFC 114 (v1) Perl resource configuration

2000-08-16 Thread Casey R. Tweten
Today around 2:34pm, Nathan Wiger hammered out this masterpiece: : > Think on this: : > : > use perlrc qw/Resource1 Resource5/; # Import only named 'Resources' : > : > use perlrc qw/:all/;# Import all 'Resources' : : > This sounds much more managable than a .perlrc that get's a

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

2000-08-16 Thread Mike Pastore
Real quick: 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 second. In scalar c

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

2000-08-16 Thread Jon Ericson
John Porter wrote: > Mike Pastore wrote: > Highlander variables acknowledge the fact that all variable types (scalar, > array, hash) are simply objects. Objects of different classes, sure; but > still just objects. Not in Perl. > You get no visual help in cases like > > $dog->bark();

Re: RFC 113 (v1) Better constants and constant folding

2000-08-16 Thread John Siracusa
On 8/16/00 4:00 PM, Perl6 RFC Librarian wrote: > =head1 TITLE > > Better constants and constant folding > > =head1 VERSION > > Maintainer: John Siracusa <[EMAIL PROTECTED]> > Date: Aug 15 2000 > Version: 1 > Mailing List: [EMAIL PROTECTED] > Number: 113 This RFC has been integrated with RF

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

2000-08-16 Thread John Porter
Mike Pastore wrote: > > Scenario 2: > > ret = grep(/hand/, var); > > *puzzled expression* "Grepping a scalar for a string? Grepping a list for > a string? Returning a list or a scalar?" You have failed to enter the mind of an expert perl programmer. ;-) grep() always treats its "second"

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

2000-08-16 Thread John Porter
> What makes Perl feel like Perl is, of course, subjective, but to me > the punctuation is a lot of it. We're trying to improve Perl, not > replace it. This is an extremely loaded statement, and we've been hearing it a lot. RFC 0, remember? Invoking RFC0 immediately after stating your own per

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

2000-08-16 Thread Mike Pastore
On Wed, 16 Aug 2000, David Corbin wrote: > Mike Pastore wrote: > > > $hashish{'dog'}# one whutzit > > @hashish{'dog', 'cat'} # more than one whutzits > > each %hashish # one whutzit, indexed > > %hashish # all whutzits, indexed > > keys %hashish

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

2000-08-16 Thread Jon Ericson
Karl Glazebrook wrote: > Jon Ericson wrote: > > I've spent almost a day trying to come up with a polite response to this > > suggestion. I have started this mail 3 or 4 times but deleted what I > > wrote because it was too sarcastic, angry or dismissive. This RFC > > Thanks! > > > strikes to t

Re: Make lvalue subs the default (was Re: RFC 107 (v1) lvalue subs should receive the rvalue as an argument)

2000-08-16 Thread James Mastros
- Original Message - From: "Jonathan Scott Duff" <[EMAIL PROTECTED]> Sent: Wednesday, August 16, 2000 10:00 AM Subject: Re: Make lvalue subs the default (was Re: RFC 107 (v1) lvalue subs should receive the rvalue as an argument) > On Wed, Aug 16, 2000 at 12:14:09AM -0700, Nathan Wiger wr

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

2000-08-16 Thread Nathan Torkington
Karl Glazebrook writes: > Well said! > > My take: I like perl, I don't mind it the way it is. But I'd be happier if > it was a lot more like python! (indentation aside) This begs the question of why you're not using python. If it's just indentation, that's silly. Surely there are patches to th

Re: RFC 91 (v1) Builtin: partition

2000-08-16 Thread Jeremy Howard
Stephen P. Potter wrote: > Lightning flashed, thunder crashed and Perl6 RFC Librarian <[EMAIL PROTECTED]> > whispered: > | =head1 TITLE > | > | Builtin: partition > | > | =head1 ABSTRACT > | > | It is proposed that a new function, C, be added to Perl. > | C would return @list broken into > | refe

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

2000-08-16 Thread Jon Ericson
Karl Glazebrook wrote: > Nathan Wiger wrote: > > Yeah, and isn't it cool that Perl gives you easy access to using and > > understanding such complex data structures: > > > >print @{ $cars->{$model} }; > > > > That "junk" makes it easy to see that you're derefencing a hashref that > > contains

Re: RFC 82 (v2) Apply operators component-wise in a list context

2000-08-16 Thread Jeremy Howard
Nathan Torkington wrote: > Perl6 RFC Librarian writes: > > It is proposed that in a list context, operators are applied > > component-wise to their arguments. Furthermore, it is proposed that > > this behaviour be extended to functions that do not provide a specific > > list context. > > I don't m

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

2000-08-16 Thread Karl Glazebrook
Well said! Nathan Torkington wrote: > > Dan Sugalski writes: > > Unfortunately, I think you're somewhat under-informed as to the inherent > > capabilities of people's brains. > > Ok, at this point I think all parties have to step away and let the > RFCs fall where they will. > > It's obvious

Re: RFC 76 (v1) Builtin: reduce

2000-08-16 Thread Jeremy Howard
Nathan Torkington wrote: > 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 it more > > > obvious

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

2000-08-16 Thread Karl Glazebrook
Jon Ericson wrote: > I've spent almost a day trying to come up with a polite response to this > suggestion. I have started this mail 3 or 4 times but deleted what I > wrote because it was too sarcastic, angry or dismissive. This RFC Thanks! > strikes to the very heart of Perl as far as I'm c

Re: RFC 107 (v1) lvalue subs should receive the rvalue as an argument

2000-08-16 Thread Nathan Torkington
Chaim Frenkel writes: > CN> Can we please cut down on the traffic to perl-announce, maybe make it > CN> moderated? Thanks, > > Perhaps, the esteemed Librarian could make the -announce a Bcc? One of the moderators was a little too approval-happy. I believe this has been fixed as of a few hours

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

2000-08-16 Thread Karl Glazebrook
Well said! My take: I like perl, I don't mind it the way it is. But I'd be happier if it was a lot more like python! (indentation aside) I guess the question arises - how radical is perl6 allowed to be? Karl Kai Henningsen wrote: > And context dependency is bad for people. > > There is a reas

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

2000-08-16 Thread Nathan Torkington
Dan Sugalski writes: > Unfortunately, I think you're somewhat under-informed as to the inherent > capabilities of people's brains. Ok, at this point I think all parties have to step away and let the RFCs fall where they will. It's obvious that there are two types of people: those who don't mind

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

2000-08-16 Thread Karl Glazebrook
Damien Neil wrote: > What makes you presume this? Perhaps snrub() is something like this: > > sub snrub { > foreach (@_) { > frobnicate $_; > } > } > > You appear to arguing that expressions in function argument lists should > not be evaluated in a list context. Is this real

Re: RFC 114 (v1) Perl resource configuration

2000-08-16 Thread Nathan Wiger
> Think on this: > > use perlrc qw/Resource1 Resource5/; # Import only named 'Resources' > > use perlrc qw/:all/;# Import all 'Resources' > This sounds much more managable than a .perlrc that get's applied globaly > without asking for it. Bingo. This feature should be off by de

Re: Make lvalue subs the default (was Re: RFC 107 (v1) lvalue subs should receive the rvalue as an argument)

2000-08-16 Thread Graham Barr
On Wed, Aug 16, 2000 at 01:51:09PM -0600, Nathan Torkington wrote: > Nathan Wiger writes: > > Nonetheless, I think a better thing would be to figure out if it's > > possible to "fix" this issue. I would *really* like lvalue subs == > > rvalue subs. > > I think conflating: >foo(@vals) > and >

Re: RFC 114 (v1) Perl resource configuration

2000-08-16 Thread Steve Simmons
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 promote. For instance, > C could turn on

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

2000-08-16 Thread Steve Simmons
On Wed, Aug 16, 2000 at 02:38:33PM -0400, Uri Guttman wrote: > i see problems with overlapping areas. I/O callbacks fall under both io > and flow IMO. some of the error handling like dying deep in eval and > $SIG{DIE} also fall under error and flow. This is true, and inevitable. But IMHO it'd b

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

2000-08-16 Thread Russ Allbery
Kai Henningsen <[EMAIL PROTECTED]> writes: > That would be nice if the punctuation actually *were* part of the > variable name. > However, it isn't: to access 'second', you'd say $args[1], NOT @args[1]. > It's one of the Perl features that most confuses newcomers. Well, I think it is; it's just

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

2000-08-16 Thread Jon Ericson
Karl Glazebrook wrote: > > Jon Ericson wrote: > > But @ and % provide important context clues (if not to perl than > > certainly for programmers). We could also eliminate the plural case in > > English, but this would be endlessly confusing for native speaker > > (err... speakers). Why not chan

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

2000-08-16 Thread Dan Sugalski
At 09:49 PM 8/16/00 +0200, Kai Henningsen wrote: >[EMAIL PROTECTED] (Dan Sugalski) wrote on 15.08.00 in ><[EMAIL PROTECTED]>: > > > At 06:04 PM 8/15/00 -0400, John Porter wrote: > > >Dan Sugalski wrote: > > > > >Generality good. > > > > > > > > For many things, yes. For computers, say. For peopl

Re: RFC 114 (v1) Perl resource configuration

2000-08-16 Thread Casey R. Tweten
Today around 8:03pm, Perl6 RFC Librarian hammered out this masterpiece: : This and other RFCs are available on the web at : http://dev.perl.org/rfc/ : : =head1 TITLE : : Perl resource configuration : : =head1 VERSION : : Maintainer: Jonthan Scott Duff <[EMAIL PROTECTED]> : Date: 16 Aug

Re: RFC 107 (v1) lvalue subs should receive the rvalue as an argument

2000-08-16 Thread Chaim Frenkel
> "CN" == Chris Nandor <[EMAIL PROTECTED]> writes: CN> Can we please cut down on the traffic to perl-announce, maybe make it CN> moderated? Thanks, Perhaps, the esteemed Librarian could make the -announce a Bcc? -- Chaim FrenkelNonlinear Knowledge,

Re: RFC 82 (v2) Apply operators component-wise in a list context

2000-08-16 Thread Nathan Torkington
Perl6 RFC Librarian writes: > It is proposed that in a list context, operators are applied > component-wise to their arguments. Furthermore, it is proposed that > this behaviour be extended to functions that do not provide a specific > list context. I don't mind making Perl's builtins do this. M

Re: RFC 111 (v1) Whitespace and Here Docs

2000-08-16 Thread Michael Fowler
On Wed, Aug 16, 2000 at 03:05:23PM -, Perl6 RFC Librarian wrote: > With a here doc print < the text of the here doc, is processed verbatum. This results in Here Docs > that either stick out in the code, or result in unwanted leading whitespace. > There are several FAQs that relate to this pro

Re: Make lvalue subs the default (was Re: RFC 107 (v1) lvalue subs should receive the rvalue as an argument)

2000-08-16 Thread Nathan Wiger
> I think conflating: >foo(@vals) > and >foo() = @vals > > is misleading and going to cause more confusion that it solves. In simple cases, yes. The above looks misleading. Advanced stuff like chaining though would be really cool. I could come up with oodles of examples. :-) > What kind

RFC 117 (v1) Perl syntax support for ranges

2000-08-16 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Perl syntax support for ranges =head1 VERSION Maintainer: pdl-porters team <[EMAIL PROTECTED]> Date: 16 August 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 117 =head1 ABSTRACT This RF

RFC 115 (v1) Default methods for objects

2000-08-16 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Default methods for objects =head1 VERSION Maintainer: pdl-porters team <[EMAIL PROTECTED]> Date: 16 August 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 115 =head1 ABSTRACT This RFC p

Re: RFC 114 (v1) Perl resource configuration

2000-08-16 Thread Jonathan Scott Duff
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 scary action-at-a-distance. If the programmer *wants* action-a

Re: RFC 83 (v2) Make constants look like variables

2000-08-16 Thread John Siracusa
On 8/16/00 3:55 PM, John Siracusa wrote: > On 8/16/00 12:37 PM, Perl6 RFC Librarian wrote: >> This RFC proposes that the current constant.pm module removed, and >> replaced with a syntax allowing any variable to be marked as constant. > > Unfortunately, I submitted an nearly identical RFC yesterd

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

2000-08-16 Thread Mike Pastore
On 16 Aug 2000, Kai Henningsen wrote: > > This is very Perlish to me; the punctuation is part of the variable name > > and disambiguates nicely. I'd be very upset if this idiom went away. > > That would be nice if the punctuation actually *were* part of the variable > name. > > However, it i

Re: RFC 114 (v1) Perl resource configuration

2000-08-16 Thread Peter Scott
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 scary action-at-a-distance. I spent several years doing X programming. Ever seen the flowchart for how resources are resolved? Let

RFC 114 (v1) Perl resource configuration

2000-08-16 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Perl resource configuration =head1 VERSION Maintainer: Jonthan Scott Duff <[EMAIL PROTECTED]> Date: 16 Aug 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 114 =head1 ABSTRACT Perl should

RFC 113 (v1) Better constants and constant folding

2000-08-16 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Better constants and constant folding =head1 VERSION Maintainer: John Siracusa <[EMAIL PROTECTED]> Date: Aug 15 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 113 =head1 AB

RFC 108 (v2) Scope of Polymorphic References and Objects

2000-08-16 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Scope of Polymorphic References and Objects =head1 VERSION Maintainer: Syloke Soong <[EMAIL PROTECTED]> Mailing List: [EMAIL PROTECTED] Date: 15 Aug 2000 Last-Modified: 16 Aug 2000 Versi

Re: RFC 83 (v2) Make constants look like variables

2000-08-16 Thread John Siracusa
On 8/16/00 12:37 PM, Perl6 RFC Librarian wrote: > This RFC proposes that the current constant.pm module removed, and > replaced with a syntax allowing any variable to be marked as constant. Unfortunately, I submitted an nearly identical RFC yesterday because I didn't see the existing one (I searc

Re: RFC 17 (v2) Organization and Rationalization of Perl

2000-08-16 Thread David L. Nicol
s/PSEUDO\S?HASH/STRUCT/g

Re: Make lvalue subs the default (was Re: RFC 107 (v1) lvalue subs should receive the rvalue as an argument)

2000-08-16 Thread Nathan Torkington
Nathan Wiger writes: > Nonetheless, I think a better thing would be to figure out if it's > possible to "fix" this issue. I would *really* like lvalue subs == > rvalue subs. I think conflating: foo(@vals) and foo() = @vals is misleading and going to cause more confusion that it solves. >

Re: RFC 112 (v1) Assignment within a regex

2000-08-16 Thread David L. Nicol
Glenn Linderman wrote: > > This deserves a "me too". > > Perl6 RFC Librarian wrote: > > > The camel and the docs include this example: > > >if (/Time: (..):(..):(..)/) { > > $hours = $1; > > $minutes = $2; > > $seconds = $3; > > } > > > > This then becomes: > >

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

2000-08-16 Thread Kai Henningsen
[EMAIL PROTECTED] (Dan Sugalski) wrote on 15.08.00 in <[EMAIL PROTECTED]>: > The ultimate target of a program's source code is the *programmer*. True. > Programmers, being people (well, more or less... :), work best with symbols > and rich context. This particular programmer *hates* what Per

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

2000-08-16 Thread Kai Henningsen
[EMAIL PROTECTED] (Nathan Wiger) wrote on 15.08.00 in <[EMAIL PROTECTED]>: > > I'd say, if the variable exists, interpolate it. If not, print it as > > it stands. > > I initially was thinking this too, but there's a major problem: > >print "Your stuff is: @stuff\n"; > > I want this to *alw

Re: RFC 48 (v2) Replace localtime() and gmtime() with da

2000-08-16 Thread Kai Henningsen
[EMAIL PROTECTED] (Jonathan Scott Duff) wrote on 15.08.00 in <[EMAIL PROTECTED]>: > You're right, there should be just one date/time routine. But it is > *extremely* difficult to incorporate time zones in a portable fashion. > They change at legislative whim. But if utcdate() (or whatever we

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

2000-08-16 Thread Kai Henningsen
[EMAIL PROTECTED] (Russ Allbery) wrote on 15.08.00 in <[EMAIL PROTECTED]>: > > All variables should be C<$x>. They should behave appropriately > > according to their object types and methods. > > No thanks. I frequently use variables $foo, @foo, and %foo at the same > time when they contain th

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

2000-08-16 Thread Kai Henningsen
[EMAIL PROTECTED] (Nathan Torkington) wrote on 15.08.00 in <[EMAIL PROTECTED]>: > * you misunderstand the purpose of $ and @, which is to indicate >singular vs plural. Yes. That's one of the things that's wrong with it - maybe the biggest of all. It's one of the things that require con

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

2000-08-16 Thread Kai Henningsen
[EMAIL PROTECTED] (Nathan Torkington) wrote on 15.08.00 in <[EMAIL PROTECTED]>: > Stephen P. Potter writes: > > Why is it silly? Hashes and arrays are *conceptually* very similar > > (even if they are extremely different implementation-wise). > > If that were the case, I think students would h

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

2000-08-16 Thread Kai Henningsen
[EMAIL PROTECTED] (Dan Sugalski) wrote on 15.08.00 in <[EMAIL PROTECTED]>: > At 06:04 PM 8/15/00 -0400, John Porter wrote: > >Dan Sugalski wrote: > > > >Generality good. > > > > > > For many things, yes. For computers, say. For people, no. Generality > > > bad. Specificity and specialization go

Re: Make lvalue subs the default (was Re: RFC 107 (v1) lvalue subs should receive the rvalue as an argument)

2000-08-16 Thread Nathan Wiger
Nathan Torkington wrote: > > > Then I think both of these should act exactly the same: > > > > somesub(@values); > > somesub = @values; > > EUGH. No way! > > Assignment should be used to reflect (get this) assignment. Using > it as argument passing is disgusting. I'm assuming you're n

Re: Make lvalue subs the default (was Re: RFC 107 (v1) lvalue subs should receive the rvalue as an argument)

2000-08-16 Thread Nathan Wiger
Nathan Torkington wrote: > > I think I failed to explain Damian's use of the word 'dangerous'. > > my $var; > sub routine { > $var; > } > > This, by virtue of rvalue subs being default, keeps the lexical $var > private. Damian's big on privacy. > (2) Changing variables in the subrou

Re: Make lvalue subs the default (was Re: RFC 107 (v1) lvalue subs should receive the rvalue as an argument)

2000-08-16 Thread Nathan Wiger
Jonathan Scott Duff wrote: > > Hrm. Perhaps you aren't explaining yourself clearly. Let's pretend > that there is a magical value called $LVALUE that contains the thing > being assigned. Are you saying that in > > somesub = $value; > > the subroutine C, being lvaluable by default is f

Re: Make lvalue subs the default (was Re: RFC 107 (v1) lvalue subs should receive the rvalue as an argument)

2000-08-16 Thread Nathan Torkington
Nathan Wiger writes: > sub somesub { > my(@stuff) = @_; > # do nothing > } > > Then I think both of these should act exactly the same: > > somesub(@values); > somesub = @values; EUGH. No way! Assignment should be used to reflect (get this) assignment. Using it

remember the "penguin" module?

2000-08-16 Thread David L. Nicol
The penguin module, as written about in an early TPJ http://cpan.valueclick.com/authors/id/F/FS/FSG/ is a way to mask off part of the functionality of your perl in order to "sandbox" with very fine grained control. Let's put that into the core of perl6, the ability to turn features off, part

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

2000-08-16 Thread Glenn Linderman
Seems like the results of @b = 1 .. 10; for ( 1 .. 3 ) { push @a, pop @b; } and @b = 1 .. 10; push (@a, pop ( @b, 3 )); But this RFC makes it seem like they produce different results in @a. One could argue that the current definition of unshift has a similar problem, and that you are "preserv

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

2000-08-16 Thread Nathan Wiger
> i see problems with overlapping areas. I/O callbacks fall under both io > and flow IMO. some of the error handling like dying deep in eval and > $SIG{DIE} also fall under error and flow. True. But it should be up to the RFC author to choose the relevant list. I think RFC authors have been prett

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

2000-08-16 Thread Russ Allbery
John Porter <[EMAIL PROTECTED]> writes: > Russ Allbery wrote: >> $args = 'first second third'; >> @args = split (' ', $args); >> my $i = 0; >> %args = map { $_ => ++$i } @args; >> This is very Perlish to me; the punctuation is part of the variable >> name and disambiguates nicely

Re: error handling and syntax extension

2000-08-16 Thread Jonathan Scott Duff
On Wed, Aug 16, 2000 at 12:15:30PM -0500, David L. Nicol wrote: > If "catch" can be defined DURING PARSING > > and SYNTAX ERRORS are catchable > > > error handling can be used to define otherwise > undefined syntax, becoming a macro language. And AUTOLOAD can go away too! :-) -Scott -- Jona

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

2000-08-16 Thread Uri Guttman
> "NW" == Nathan Wiger <[EMAIL PROTECTED]> writes: NW> I agree. I think the trend should be to establish some permanent NW> sublists, which we're informally leaning towards already. Something NW> like: NW>-io = ALL I/O issues, like open/socket/filehandles NW>-subs

Re: English language basis for "throw"

2000-08-16 Thread David L. Nicol
Bart Lateur wrote: > > To me, a program is much like a maze, a > multilevel walk in an old castle. And if you commit a faux pas of some kind, the guards show up and "throw" you off the north tower. -- David Nicol 816.235.1187 [EMAIL PROTECTED]

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

2000-08-16 Thread Peter Scott
At 11:17 PM 8/15/00 -0400, Chaim Frenkel wrote: > > "NT" == Nathan Torkington <[EMAIL PROTECTED]> writes: > >NT> Chaim Frenkel writes: > >> Why? What is the gain? Perl only runs on the local machine. > >NT> Epoch seconds are a convenient representation for dates and times. >NT> Varying epochs

Re: RFC 110 (v1) counting matches

2000-08-16 Thread Uri Guttman
> "GB" == Graham Barr <[EMAIL PROTECTED]> writes: GB> On Wed, Aug 16, 2000 at 10:49:16AM -0500, Jarkko Hietaniemi wrote: >> On Wed, Aug 16, 2000 at 04:41:33PM +0100, Graham Barr wrote: >> > On Wed, Aug 16, 2000 at 10:20:28AM -0500, Jonathan Scott Duff wrote: >> > > > m//gt would be de

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

2000-08-16 Thread Russ Allbery
Stephen P Potter <[EMAIL PROTECTED]> writes: > What stops us from imposing order on this chaos? If they are currently > defined as not having any specific order, why can't we say they always > return in numeric || alphabetic || ASCII || whatever order we want? Because the fewer guarantees you m

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

2000-08-16 Thread David L. Nicol
The poll can't have been exhaustive. I like these magic variables that depend on currently selected fie handles, they remind me of Pascal's C construction for entering the name space of a record structure. Anyone for generalizing "select" to a more general "with" keyword which would operate

Re: RFC 110 (v1) counting matches

2000-08-16 Thread Nathan Torkington
Jarkko Hietaniemi writes: > > Better would be to redefine what m//g means in a scalar context. > > > > $_ = "foofoofoofoofoofoofoo"; > > $count = m/foo/g; > > > > 1 is just as true as 7. > > I like this. No extra //modifiers to learn. scalar context of /g is already defined to be som

Re: RFC 74 (v2) Proposal to rename C and C

2000-08-16 Thread Nathan Wiger
> And I'm not proposing that this should change, just that import should > be spelled "IMPORT". The perl5 to perl6 translator would simply do > s/import/IMPORT/g (okay, not *simply*, but you get the drift) So in your code, if you wanted to explicitly import something you'd have to write: req

Re: subroutines ==? methods

2000-08-16 Thread David L. Nicol
Say we allow instantly tied lazy subroutine definitions like so: @naturals = (? { my $x=1; yield $x++ while 1 }) Is the code block in there a subroutine or a method? And why? How about using the eminently deprecatable "reset" operator to start a tied lazy array back at it's "original"

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

2000-08-16 Thread Nathan Wiger
"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 agree. I think the trend should be to establish some perm

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

2000-08-16 Thread John Porter
Nathan Torkington wrote: > John Porter writes: > > foo $= ( bar, quux ); # provide scalar context to both sides > > foo @= ( bar, quux ); # provide list context to both sides > > I assume you've dropped this idea as well, given the argument that you > would be dropping prefix symbols bu

Re: RFC 82 (listops in list context)

2000-08-16 Thread Nathan Torkington
Peter Scott writes: > >You're right. If RFC 45 is implemented they would however be inconsistent. > > No, || is half-consistent at the moment: the left hand side is forced into > scalar context but the result context propagates down the right hand > side. I challenge anyone to come up with a r

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

2000-08-16 Thread John Porter
Jonathan Scott Duff wrote: > As for $a[$something], if @a had been declared as > "my @a : assoc;", then perl should stringify $something, otherwise > numify. Hmm.. I guess this implies that all hashes need to be > pre-declared. :-( That was kinda along the lines of my suggestion; that the behav

Re: RFC 68 (v1) Eliminate the optional C for C

2000-08-16 Thread Peter Scott
At 10:53 AM 8/16/00 -0400, Stephen P. Potter wrote: >Lightning flashed, thunder crashed and Perl6 RFC Librarian ><[EMAIL PROTECTED]> > whispered: >| =head1 TITLE >| >| Eliminate the optional C for C etc block declarations > >It seems to me it makes more sense to require the sub, but to move them

  1   2   3   >