Re: Attribute access

2000-09-28 Thread Nathan Wiger
James Mastros wrote: > > As far as setting|getting, I'd like to make a simple proposal. Consider it > an idea for whoever writes the RFC (I'm looking at you, Nate) Oh, jeez, as if I didn't have enough already! ;-) > The idea is this: every variable should have a psudohash of attributes. Idea

Re: RFC 288 (v2) First-Class CGI Support

2000-09-28 Thread Nathan Wiger
Alan Gutierrez wrote: > > This header functionality is application specific and does not belong in > the core any more than the socket stuff which seems to be on its way > out. I don't see why this has be implemented in the core in C. > > Once again, if core means core modules, and as a part of

Cya dudes

2000-09-28 Thread Ed Mills
I tried to contribute on this list but it seems we've coalesced downto Tom and a handful of others. No one else has a voice. I have nothing but respect for Tom, Nathan, et al, but its no longer my idea of a community - more like a faction. I'm getting more into PHP now and less into Perl, onl

Re: RFC 288 (v2) First-Class CGI Support

2000-09-28 Thread Alan Gutierrez
On Wed, 27 Sep 2000, Adam Turoff wrote: > On Wed, Sep 27, 2000 at 11:33:13AM -0700, Nathan Wiger wrote: > > Ziggy, are you interested in this idea enough (at all?) to stick a note > > about the 'header' function into the RFC? Or should I RFC it separately? > > Adding headers() to the core langua

Re: RFC 288 (v2) First-Class CGI Support

2000-09-28 Thread Alan Gutierrez
On Wed, 27 Sep 2000, Nathan Wiger wrote: > Robert Mathews wrote: > > How are you going to handle multiple values for the same parameter? > > With CGI.pm, you can say > > @values = $q->param("foo"); > > 2. make it a comma-delimited string: > >$name = $CGI{name}; >@name = split ',', $

RFC 340 (v1) with takes a context

2000-09-28 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE with takes a context =head1 VERSION Maintainer: David Nicol <[EMAIL PROTECTED]> Date: 28 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 340 Version: 1 Status: Developing =head1 ABSTRACT "cal

RFC 339 (v1) caller->eval BLOCK

2000-09-28 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE caller->eval BLOCK =head1 VERSION Maintainer: David Nicol <[EMAIL PROTECTED]> Date: 28 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 339 Version: 1 Status: Developing =head1 ABSTRACT C is e

Attribute access

2000-09-28 Thread James Mastros
There are many (good) RFCs that specify new attributes. To the best of my knowledge, there is no good RFC discussing how to go about making attributes, setting them, and getting them. As far as setting|getting, I'd like to make a simple proposal. Consider it an idea for whoever writes the RFC (

Re: RFC 333 (v1) Add C and C funtions to core distribution

2000-09-28 Thread Nathan Wiger
> PS> un is such a lame prefix and very un perl like... unjoin? unpush? > okay so unshift, but still... hey wait I want undelete! Heh. :-) This is not really true, in fact within Perl it is the One True Prefix, ala undef, unlink, unpack, unshift, untie... -Nate

Re: RFC 333 (v1) Add C and C funtions to core distribution

2000-09-28 Thread Nathan Wiger
Jonathan Scott Duff wrote: > > My first thought was "this should definitely be in a module" and your > comments just fire those synapses even more strongly. Yes, this will likely end up in a core module. The main thing is that it always has to be available so that pragmas like "use cgi" can impo

Re: RFC 333 (v1) Add C and C funtions to core distribution

2000-09-28 Thread Jerrad Pierce
Personally I think this is probably a bad idea. But if such a thing WERE to be implemented, I don't see why you have to have two words... header(a>1, b=>2); #options list, returns a string with formatted headers header($foo); #scalar option $foo is parsed and a list is returned

Re: RFC 262 (v1) Index Attribute

2000-09-28 Thread David L. Nicol
John Porter wrote: > > David L. Nicol wrote: > > > > > > print "Found It at position ${_:n}!\n" if /$seek/ foreach @items > > If we are going to be throwing around attributes like that, why > don't we switch to using the ubiquitously recognizable dot instead > of colon? > > for my

Re: RFC 262 (v1) Index Attribute

2000-09-28 Thread John Porter
David L. Nicol wrote: > > > print "Found It at position ${_:n}!\n" if /$seek/ foreach @items If we are going to be throwing around attributes like that, why don't we switch to using the ubiquitously recognizable dot instead of colon? for my $iter ( @things ) { pri

Re: RFC 333 (v1) Add C and C funtions to core distribution

2000-09-28 Thread Jonathan Scott Duff
On Thu, Sep 28, 2000 at 03:22:08PM -0600, John Barnette wrote: > Perl6 RFC Librarian (Today): > > =head1 TITLE > > Add C and C funtions to core distribution > > While I'm not sure if this belongs in the core or not, I think it's nifty, > and I'd like to point out an almost inevitable side effect.

Re: PERL6STORM - tchrist's brainstorm list for perl6

2000-09-28 Thread Adam Krolnik
I think the octal number representation should not be accepted... Adam Krolnik Verification Mgr. LSI Logic Corp. Plano TX. 75074

Re: RFC 333 (v1) Add C and C funtions to coredistribution

2000-09-28 Thread John Barnette
Perl6 RFC Librarian (Today): > =head1 TITLE > Add C and C funtions to core distribution >Maintainer: Nathan Wiger <[EMAIL PROTECTED]> > > =head1 ABSTRACT > This RFC proposes that Perl include a simple function, C, that > can be used to interact with these headers more easily. It is a > gener

Re: RFC 171 (v3) my Dog $spot should call a constructor implicitly

2000-09-28 Thread Michael Fowler
On Thu, Sep 28, 2000 at 12:25:32PM +0100, Tom Christiansen wrote: > You also didn't mention that you would have broken the symmetry between > >my Dog $spot; >our Dog $spot; No, I didn't mention our Dog $spot should be the same thing, but on an our variable. > Or that constructors h

RFC 333 (v1) Add C and C funtions to core distribution

2000-09-28 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Add C and C funtions to core distribution =head1 VERSION Maintainer: Nathan Wiger <[EMAIL PROTECTED]> Date: 27 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 333 Version: 1 Status: Devel

RFC 329 (v1) C

2000-09-28 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE C =head1 VERSION Maintainer: Simon Cozens <[EMAIL PROTECTED]> Date: 28 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 329 Version: 1 Status: Developing =head1 ABSTRACT A pragma to modify the

Re: Expunge "use English" from Perl? (was Re: Perl6Storm: Intent to RFC #0101)

2000-09-28 Thread Nathan Wiger
Simon Cozens wrote: > > On Thu, Sep 28, 2000 at 10:00:49AM -0400, Andy Dougherty wrote: > > On Wed, 27 Sep 2000, Nathan Wiger wrote: > > > Y'know, I couldn't have said this better myself. :-) I've always felt > > > that "use English" was a waste of time and effort, a bandaid trying to > > > act a

RFC 277 (v2) Method calls SHOULD suffer from ambiguity by default

2000-09-28 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Method calls SHOULD suffer from ambiguity by default =head1 VERSION Maintainer: Nathan Wiger <[EMAIL PROTECTED]> Date: 24 Sep 2000 Last Modified: 28 Sep 2000 Mailing List: [EMAIL PROTECTED] Number

Re: Murdering @ISA considered cruel and unusual

2000-09-28 Thread Simon Cozens
On Thu, Sep 28, 2000 at 02:40:04PM -0400, John Porter wrote: > Tom Christiansen wrote: > > Perl's use of @ISA is beautiful. > > > > use base is, or can be, pretty silly -- > > think pseudohashes, just for one. > > I suppose you diddle @INC directly, Tom, > instead of use'ing lib? I call "non

Re: RFC 288 (v2) First-Class CGI Support

2000-09-28 Thread Adam Turoff
On Thu, Sep 28, 2000 at 08:06:42AM +0200, H . Merijn Brand wrote: > On 27 Sep 2000 07:36:42 -, Perl6 RFC Librarian <[EMAIL PROTECTED]> wrote: > > This and other RFCs are available on the web at > > http://dev.perl.org/rfc/ > > > > =head1 TITLE > > > > First-Class CGI Support > > Freezing

Re: Expunge "use English" from Perl? (was Re: Perl6Storm: Intent to RFC #0101)

2000-09-28 Thread Russ Allbery
Andy Dougherty <[EMAIL PROTECTED]> writes: > I find that I don't remember many of the less-frequently-used perlvars > (where less-frequently-used depends on the types of programs I write, > obviously). I certainly couldn't tell you off-hand the differences > among $< $> $( and $). I'd have to l

Re: split() ideas

2000-09-28 Thread John Porter
Jonathan Scott Duff wrote: > > 1. Allow the first argument to split() to be a number such that >the string is broken into chunks of that many characters. @strings = /(.{$n})/g; > 2. Allow the first argument to split() to be an array of >numbers, such t

Re: Murdering @ISA considered cruel and unusual

2000-09-28 Thread John Porter
Tom Christiansen wrote: > > Perl's use of @ISA is beautiful. > > use base is, or can be, pretty silly -- > think pseudohashes, just for one. I suppose you diddle @INC directly, Tom, instead of use'ing lib? -- John Porter

Re: RFC 288 (v2) First-Class CGI Support

2000-09-28 Thread Robert Mathews
Nathan Wiger wrote: > 1. make a listref only for multiple values: >@name = @{$CGI{name}} if ( ref $CGI{name} eq 'ARRAY' ); Ick. That piece of code is small enough, but it's going to end up replicating itself everywhere %CGI is accessed. This will be a fruitful new source of bugs when people

Re: split() ideas

2000-09-28 Thread Graham Barr
On Thu, Sep 28, 2000 at 01:02:11PM -0500, Jonathan Scott Duff wrote: > I thought I had sent this the other day, but it doesn't appear to have > made it through... > > Here are a couple of ideas that I don't have time to RFC, but some who > likes them might: > > 1. Allow the first argumen

split() ideas

2000-09-28 Thread Jonathan Scott Duff
I thought I had sent this the other day, but it doesn't appear to have made it through... Here are a couple of ideas that I don't have time to RFC, but some who likes them might: 1. Allow the first argument to split() to be a number such that the string is broken into chunks o

Re: perl6storm #0050

2000-09-28 Thread John Porter
Buddha Buck wrote: > > While Perl -lets- every function be well prototyped, it doesn't -require- > every function to be well prototyped. Because of this, it might be well > nigh impossible to eliminate all ambiguity to the compiler. Well, right. Clearly, in those cases, you can expect to nee

Re: my and local

2000-09-28 Thread Adam
On Thu, 28 Sep 2000, Steve Fink wrote: > Tom Christiansen wrote: > > > > As we sneak under the wire here, I'm hoping someone > > has posted an RFC that alters the meaning of my/local. > > It's very hard to explain as is. my is fine, but local > > should be changed to something like "temporary" (

Re: my and local

2000-09-28 Thread Steve Fink
Tom Christiansen wrote: > > As we sneak under the wire here, I'm hoping someone > has posted an RFC that alters the meaning of my/local. > It's very hard to explain as is. my is fine, but local > should be changed to something like "temporary" (yes, that > is supposed to be annoying to type) or

Re: RFC 262 (v1) Index Attribute

2000-09-28 Thread David L. Nicol
Webmaster wrote: > > (I have attached a prototype of what I had in mind) > > From: "David L. Nicol" <[EMAIL PROTECTED]> > > Yes, that is exactly what is being suggested, but the "indexof" function > > is implicit in the attribute. Your code becomes > > > > print "Found It at position ${_:n}!\n"

Re: Expunge "use English" from Perl? (was Re: Perl6Storm: Intent to RFC #0101)

2000-09-28 Thread Simon Cozens
On Thu, Sep 28, 2000 at 10:00:49AM -0400, Andy Dougherty wrote: > On Wed, 27 Sep 2000, Nathan Wiger wrote: > > Y'know, I couldn't have said this better myself. :-) I've always felt > > that "use English" was a waste of time and effort, a bandaid trying to > > act as a tourniquet. > > I think it's

Re: RFC 288 (v2) First-Class CGI Support

2000-09-28 Thread Nathan Wiger
> A future protocol could well require things in order. Hence you're > having the output headers in order. Therefore you should have the input > ones available in order as well. I don't see a reason why an @HTTP ordered and %HTTP unordered couldn't both be supported. > I'm thinking a $headers_i

Re: RFC 277 (v1) Eliminate unquoted barewords from Perl entirely

2000-09-28 Thread Nathan Wiger
Tom Christiansen wrote: > > >So what's left? > > > >print STDERR "Foo"; > > > >We have a proposal to turn STDERR into $STDERR, and it looks likely it'll go > >through. > > It is? I certainly hope not. It makes as much sense to > do that as to force a dollar sign on subroutines. Your point

Re: Murdering @ISA considered cruel and unusual

2000-09-28 Thread Nathan Wiger
Piers Cawley wrote: > > > >I strongly agree with the opinion that we should try and get away from > > >special variables and switches in favor of functions and pragmas. > > >Witness 'use base' instead of '@ISA', 'use warnings', and so on. > > > > Huh? Why??? Perl's use of @ISA is beautiful. It

Re: Expunge "use English" from Perl? (was Re: Perl6Storm: Intent toRFC #0101)

2000-09-28 Thread Andy Dougherty
On Wed, 27 Sep 2000, Nathan Wiger wrote: > Russ Allbery wrote: > > > > I've found the use of use English in code I had to maintain to be annoying > > and unhelpful, and to actually degrade the maintainability of the code > Y'know, I couldn't have said this better myself. :-) I've always felt > t

Re: RFC 48 (v4) Replace localtime() and gmtime() with date() and utcdate()

2000-09-28 Thread Tom Christiansen
Certainly numbers should never be "zero-padded"! Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please

Re: RFC 171 (v3) my Dog $spot should call a constructor implicitly

2000-09-28 Thread Tom Christiansen
You also didn't mention that you would have broken the symmetry between my Dog $spot; our Dog $spot; Or that constructors have no (and should have no) set name in Perl. --tom Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended

Re: Murdering @ISA considered cruel and unusual

2000-09-28 Thread Piers Cawley
Tom Christiansen <[EMAIL PROTECTED]> writes: > >I strongly agree with the opinion that we should try and get away from > >special variables and switches in favor of functions and pragmas. > >Witness 'use base' instead of '@ISA', 'use warnings', and so on. > > Huh? Why??? Perl's use of @ISA is

Re: RFC 288 (v2) First-Class CGI Support

2000-09-28 Thread iain truskett
* Philip Newton ([EMAIL PROTECTED]) [28 Sep 2000 21:19]: > On 27 Sep 2000, at 23:48, iain truskett wrote: > > So surely you'd want %HTTP (the input headers) to also be an array > > rather than a hash, since they'd be required in order as well? > I don't care, because I don't work with this much.

Re: RFC 288 (v2) First-Class CGI Support

2000-09-28 Thread Philip Newton
On 27 Sep 2000, at 23:48, iain truskett wrote: > So surely you'd want %HTTP (the input headers) to also be an array > rather than a hash, since they'd be required in order as well? I don't care, because I don't work with this much. And I don't know whether I'd need to bear in mind the protocol

Re: my and local

2000-09-28 Thread Dave Hartnoll
To my mind, things would be a lot clearer if my and local were to change places - but I can see why that would not be a good thing. If it's not too late for suggestions for renaming local, what about 'override'. Dave. - Original Message - From: "Michael Fowler" <[EMAIL PROTECTED]> To: "T

Re: my and local

2000-09-28 Thread Michael Fowler
On Thu, Sep 28, 2000 at 10:18:34AM +0100, Tom Christiansen wrote: > As we sneak under the wire here, I'm hoping someone > has posted an RFC that alters the meaning of my/local. > It's very hard to explain as is. my is fine, but local > should be changed to something like "temporary" (yes, that >

Re: RFC 277 (v1) Eliminate unquoted barewords from Perl entirely

2000-09-28 Thread Tom Christiansen
>So what's left? > >print STDERR "Foo"; > >We have a proposal to turn STDERR into $STDERR, and it looks likely it'll go >through. It is? I certainly hope not. It makes as much sense to do that as to force a dollar sign on subroutines. sub $foo { ... } or sub 'foo' { ... } Heck,

Murdering @ISA considered cruel and unusual

2000-09-28 Thread Tom Christiansen
>I strongly agree with the opinion that we should try and get away from >special variables and switches in favor of functions and pragmas. >Witness 'use base' instead of '@ISA', 'use warnings', and so on. Huh? Why??? Perl's use of @ISA is beautiful. It's an example of code reuse, because we do

Re: RFC 277 (v1) Eliminate unquoted barewords from Perl entirely

2000-09-28 Thread Tom Christiansen
Try thinking of it this way: it's only a bareword if it would make use strict whinge at you. Thus, the constructs you cited are all non-uses of barewords, such as in use Foo or require Foo or Foo => 1, or even $x{Foo}. And I have proposed (nonRFC) that Foo->bar() also be not a bareword. Yes, I

my and local

2000-09-28 Thread Tom Christiansen
As we sneak under the wire here, I'm hoping someone has posted an RFC that alters the meaning of my/local. It's very hard to explain as is. my is fine, but local should be changed to something like "temporary" (yes, that is supposed to be annoying to type) or "dynamic". Visit our website at http

Re: perl6storm #0050

2000-09-28 Thread Piers Cawley
John Porter <[EMAIL PROTECTED]> writes: > Piers Cawley wrote: > > > > You know, I'm trying to see what's annoying about all those > > parentheses in the lisp function and what do you know, I can't see > > anything wrong. Okay, so it's not Perl syntax, but it's still clear > > what's going on. >

Re: RFC 143 (v2) Case ignoring eq and cmp operators

2000-09-28 Thread Tom Christiansen
This RFC still has silly language that discounts what has been said before. 1) It calls uc($a) eq uc($b) "ugly", despite their being completely intuitive and legible to even the uninitiated. 2) It then proposes "eq/i" without the least blush, despite how incredibly ugly and non-intu

Re: RFC 288 (v2) First-Class CGI Support

2000-09-28 Thread Hildo Biersma
Adam Turoff wrote: > > On Wed, Sep 27, 2000 at 11:33:13AM -0700, Nathan Wiger wrote: > > Ziggy, are you interested in this idea enough (at all?) to stick a note > > about the 'header' function into the RFC? Or should I RFC it separately? > > Adding headers() to the core language (or a similar pr