Re: RFC 231 (v1) Data: Multi-dimensional arrays/hashes and slices

2000-09-16 Thread Ilya Zakharevich
On Sat, Sep 16, 2000 at 11:08:18AM +1100, Jeremy Howard wrote: proposes a convenient syntax to slice multi-dimensional arrays; It is hard to evaluate this proposal without more context. In particular: - How does it relate to RFC 204? Is it an alternative, or an addition? 204 cannot be

Re: RFC 231 (v1) Data: Multi-dimensional arrays/hashes and slices

2000-09-16 Thread Jeremy Howard
Ilya Zakharevich wrote: On Sat, Sep 16, 2000 at 11:08:18AM +1100, Jeremy Howard wrote: - How does it relate to RFC 204? Is it an alternative, or an addition? 204 cannot be implemented since it prohibits usage of overloaded objects as array indices. Why is it important for overloaded

Re: RFC 231 (v1) Data: Multi-dimensional arrays/hashes and slices

2000-09-16 Thread Ilya Zakharevich
On Sat, Sep 16, 2000 at 07:15:34PM +1100, Jeremy Howard wrote: Why is it important for overloaded objects to be used as array indices? Overloaded objects should behave the same way as non-objects. Why does RFC 204 rule that out? RFC 204 simply specifies that a list reference as an index

Re: RFC 231 (v1) Data: Multi-dimensional arrays/hashes and slices

2000-09-16 Thread Jeremy Howard
Ilya Zakharevich wrote: On Sat, Sep 16, 2000 at 07:15:34PM +1100, Jeremy Howard wrote: Why is it important for overloaded objects to be used as array indices? Overloaded objects should behave the same way as non-objects. Why does RFC 204 rule that out? RFC 204 simply specifies that a

Re: RFC 231 (v1) Data: Multi-dimensional arrays/hashes and slices

2000-09-16 Thread Ilya Zakharevich
On Sun, Sep 17, 2000 at 11:07:09AM +1100, Jeremy Howard wrote: I repeat: what does $a[ $ind ] does if $ind is a (blessed) reference to array (1,1), but behaves as if it were 11 (due to overloading)? How $ind is implemented (ie the actual structure that is blessed) does not

Sublist -io RFC wrap-up time

2000-09-16 Thread Nathan Wiger
[ for those on -all or -objects this is gonna look real familiar :-) ] All- As Nat has mentioned on -meta, it's time to start wrapping things up. In particular, I think the following "deadlines" should apply: 1. Any and all *new* RFC's should be submitted by Wednesday at the absolute

RFC 14 (v4) Modify open() to support FileObjects and Extensibility

2000-09-16 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Modify open() to support FileObjects and Extensibility =head1 VERSION Maintainer: Nathan Wiger [EMAIL PROTECTED] Date: 4 Aug 2000 Last Modified: 15 Sep 2000 Mailing List: [EMAIL PROTECTED]

Re: RFC 188 (v1) Objects : Private keys and methods

2000-09-16 Thread Glenn Linderman
Perl6 RFC Librarian wrote: The effects of applying Cprivate to a single hash entry would be to: =over 4 =item 1. mark the entire hash as non-autovivifying (except via future calls to Cprivate -- see below) This is an interesting proposal, but it seems to be missing something, or maybe I

RFC 222 (v2) Interpolation of object method calls

2000-09-16 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Interpolation of object method calls =head1 VERSION Maintainer: Michael G Schwern [EMAIL PROTECTED] Date: 14 Sep 2000 Last Modified: 17 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 222

RFC 73 (v2) All Perl core functions should return objects

2000-09-16 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE All Perl core functions should return objects =head1 VERSION Maintainer: Nathan Wiger [EMAIL PROTECTED] Date: 8 Aug 2000 Last-Modified: 15 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 73

RFC 159 (v2) True Polymorphic Objects

2000-09-16 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE True Polymorphic Objects =head1 VERSION Maintainer: Nathan Wiger [EMAIL PROTECTED] Date: 25 Aug 2000 Last-Modified: 16 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 159 Version: 2 Status:

RFC 170 (v2) Generalize =~ to a special apply-to assignment operator

2000-09-16 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Generalize =~ to a special "apply-to" assignment operator =head1 VERSION Maintainer: Nathan Wiger [EMAIL PROTECTED] Date: 29 Aug 2000 Last-Modified: 16 Sep 2000 Mailing List: [EMAIL PROTECTED]

Re: RFC 16 (v2) Keep default Perl free of constraints such as warnings and strict.

2000-09-16 Thread Bart Lateur
On Sat, 16 Sep 2000 09:39:28 -0700, Nathan Wiger wrote: But not: no strict 'refs';# on by default, disable use strict 'vars'; Which is too confusing. I wonder if 'strict' shouldn't be turned into 2 or 3 separate pragma's, instead of just one. IMO, there isn't a strong between strict

Re: RFC 238 (v1) length(@ary) deserves a warning

2000-09-16 Thread Bart Lateur
On Sat, 16 Sep 2000 10:26:48 +0100, Hildo Biersma wrote: length(@ary) deserves a warning Right now, the Lint back-end gives a warning in these cases (use of array in scalar context). Can we make the RFC more generic, and propose to move the Lint warnings into the core? But using arrays in a

Re: RFC 238 (v1) length(@ary) deserves a warning

2000-09-16 Thread Nathan Wiger
Michael G Schwern wrote: I'm surprised there hasn't be a good overhaul of the prototyping system proposeed yet. Your length() propsal wouldn't be the only think that can't be prototyped. print() is the simplest example. I think print should probably become something like what Eryq

Re: RFC 238 (v1) length(@ary) deserves a warning

2000-09-16 Thread Bart Lateur
On Sat, 16 Sep 2000 16:19:08 +0100, Hildo Biersma wrote: But using arrays in a scalar context usually isn't an error. So, we make the warnings smarter and make sure they can be turned off... And distinguish between simply an array in scalar context, and an array used as an argument for

Re: RFC 232 (v1) Replace AUTOLOAD by a more flexible mechanism

2000-09-16 Thread Ilya Zakharevich
On Fri, Sep 15, 2000 at 03:11:47PM -0600, Nathan Torkington wrote: Perl6 RFC Librarian writes: This RFC proposes two-stage autoloading: one stage may be registered to act when the symbol is encountered at compile time, the other when the subroutine is called. Autoloading on the second

Re: RFC 236 (v1) Change the way $SIG{__WARN__} and $SIG{__DIE__} are used

2000-09-16 Thread Simon Cozens
On Sat, Sep 16, 2000 at 03:36:45AM -, Perl6 RFC Librarian wrote: The current method in which C__WARN__ and C__DIE__ signal handlers are used is limited in 2ways: =over 8 =item It does not allow them to accept robust parameter lists. =item It does not allow for multiple layers of

Re: RFC 244 (v1) Method calls should not suffer from the action on a distance

2000-09-16 Thread Michael G Schwern
On Sat, Sep 16, 2000 at 08:08:06AM -, Perl6 RFC Librarian wrote: There only way to avoid the action at a distance is to prohibit one of these interpretations. Since the other way Cfoo-bar $baz to write this method call is as convenient as the indirect object syntax, the proposal is to

Re: RFC 223 (v1) Objects: Cuse invocant pragma

2000-09-16 Thread Hildo Biersma
John Porter wrote: Hildo Biersma wrote: I think such modules are a bad idea, because their functionality is typically restricted. Oh? Where do you get that idea? Think about it. If a module supports both an OO and a procedural interface, the procedural interface either requires

Re: RFC 241 (v1) Pseudo-hashes must die!

2000-09-16 Thread Hildo Biersma
=head1 ABSTRACT Pseudo-hashes and the associated fields pragma shoule be removed from Perl 6. A few counter points: Removal of pseudo-hashes should not stop us from using this (or a similar mechanism) under the covers in perl6 to implement strongly typed objects. AFAIK, most of the pain

Re: RFC 241 (v1) Pseudo-hashes must die!

2000-09-16 Thread Michael G Schwern
On Sat, Sep 16, 2000 at 10:31:55AM +0100, Hildo Biersma wrote: AFAIK, most of the pain in the implementation is caused because any old array can be 'promoted' into a pseduo-hash at any-time. If pseudo-hashes always have to be pre-declared (eg, can only be created through fields::new()) and

Re: RFC 71 (v2) Legacy Perl $pkg'var should die

2000-09-16 Thread Nathan Wiger
Perl used to use $pkg'var instead of the modern $pkg::var. This is still in Perl 5. It's gotta go. Aside from "its old", is there any particular reason why $pkg'var should go? "use D'oh" will be missed :-), but sometimes legacy stuff needs to be expunged to get people to modernize. I

Re: RFC 243 (v1) No special UPPERCASE_NAME subroutines

2000-09-16 Thread Nathan Wiger
No special UPPERCASE_NAME subroutines Whoa! What about ALLCAPS variables? Should we axe all of them as well? They're the exact same idea. If some special action handler needs to be registered, this should be done not by using a special name, but by a pragma. use tie STORE = sub { ... };

Re: RFC 244 (v1) Method calls should not suffer from the action on a distance

2000-09-16 Thread Nathan Wiger
This RFC proposes to remove indirect object syntax Please show me how to write: print STDERR @stuff; without it, while keeping it a method of the STDERR filehandle, and without requiring -. -Nate

Re: RFC 71 (v2) Legacy Perl $pkg'var should die

2000-09-16 Thread Michael G Schwern
On Sat, Sep 16, 2000 at 09:18:05AM -0700, Nathan Wiger wrote: "use D'oh" will be missed :-), but sometimes legacy stuff needs to be expunged to get people to modernize. Of all the legacy things which get abused, this is the one I've never seen. Plus, ' is already widely-used as a

Re: RFC 230 (v1) Replace Cformat built-in with pragmatically-induced Cformat function

2000-09-16 Thread Nathan Wiger
Replace Cformat built-in with pragmatically-induced Cformat function This RFC proposes that Perl's existing Cformat mechanism be replaced with a standard module based on parts of the Text::Autoformat module. One other little thing: I really think this should be use Format; # like

Re: RFC 195 (v2) Retire chop().

2000-09-16 Thread Sven Neuhaus
On Sat, Sep 16, 2000 at 03:28:26AM -, Perl6 RFC Librarian wrote: =head1 TITLE Retire chop(). =head1 VERSION Maintainer: Nathan Torkington [EMAIL PROTECTED] Date: 5 Sep 2000 Last Modified: 15 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 195 Version: 2 Status:

Re: RFC 103 (v2) Fix C$pkg::$var precedence issues with parsing of C::

2000-09-16 Thread Nathan Wiger
${$pkg.'::'.$var} = $val; ${"$pkg\::$var} = $val; Still ugly, but not quite as bad as what you came up with. Thanks - once I saw the first one my brain went "Oh, yeah" Ooop, didn't even notice and didn't see the discussion. Let me see if I missed anything... I didn't

Re: RFC 195 (v2) Retire chop().

2000-09-16 Thread Tom Christiansen
Maintainer: Nathan Torkington [EMAIL PROTECTED] Date: 5 Sep 2000 Last Modified: 15 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 195 Version: 2 Status: Frozen As I mailed to Nathan Torkington several days ago (without getting a reply), many people use chop() a lot and

Re: RFC 242 (v1) No overloading of f($arg) basing on ref($arg)

2000-09-16 Thread Nathan Wiger
No overloading of f($arg) basing on ref($arg) There are several proposals to switch the meaning of Cf($arg) basing on the whether $arg is an array reference or not. For example, it is tempting to allow C$array[[2,3]] denote the same as C$array[2][3]. Ilya- I know I'd personally appreciate

Re: RFC 103 (v2) Fix C$pkg::$var precedence issues with parsing of C::

2000-09-16 Thread Michael G Schwern
On Sat, Sep 16, 2000 at 02:57:01PM -0700, Nathan Wiger wrote: Ooop, didn't even notice and didn't see the discussion. Let me see if I missed anything... I didn't discuss class methods as opposed to object methods. Will ponder. It's really dicey. I think it's probably bad, because

Re: RFC 103 (v2) Fix C$pkg::$var precedence issues with parsing of C::

2000-09-16 Thread Nathan Wiger
Michael G Schwern wrote: print "Your name is Class-name"; Whether Class is 'Class' or Class(). The phrase "avoid at all costs" comes to mind. ;-) Hmmm... we could require that the trailing parens be there: print "Your name is Class-name()"; Right, we could do something

Re: RFC 103 (v2) Fix C$pkg::$var precedence issues with parsing of C::

2000-09-16 Thread Michael G Schwern
On Sat, Sep 16, 2000 at 07:26:38PM -0700, Nathan Wiger wrote: My point was more should that be 'Class'-name or Class()-name I don't get it, lemme start from the beginning: print "Basset hounds got long Basset::Hounds-thang()."; I'd like that to work out as: print

RFC 241 (v1) Pseudo-hashes must die!

2000-09-16 Thread Perl6 RFC Librarian
=head1 VERSION Maintainer: Michael Schwern [EMAIL PROTECTED] Date: 16 September 2000 Mailing List: perl6-language Number: ? Version: 1 Status: Developing (Last Call) Reply-To: perl6-language @perl.org This and other RFCs are available on the web at

RFC 243 (v1) No special UPPERCASE_NAME subroutines

2000-09-16 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE No special UPPERCASE_NAME subroutines =head1 VERSION Maintainer: Ilya Zakharevich [EMAIL PROTECTED] Date: 15 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 243 Version: 1 Status: Developing

RFC 244 (v1) Method calls should not suffer from the action on a distance

2000-09-16 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Method calls should not suffer from the action on a distance =head1 VERSION Maintainer: Ilya Zakharevich [EMAIL PROTECTED] Date: 15 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 244 Version: 1

RFC 105 (v2) Remove In string @ must be \@ fatal error

2000-09-16 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Remove "In string @ must be \@" fatal error =head1 VERSION Maintainer: Nathan Wiger [EMAIL PROTECTED] Date: 15 Aug 2000 Last-Modified: 16 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 105

RFC 181 (v2) Formats out of core / New format syntax

2000-09-16 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Formats out of core / New format syntax =head1 VERSION Maintainer: Nathan Wiger [EMAIL PROTECTED] Date: 30 Aug 2000 Last Modified: 16 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 181

RFC 245 (v1) Add new Cempty keyword to DWIM for clearing values

2000-09-16 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Add new Cempty keyword to DWIM for clearing values =head1 VERSION Maintainer: Nathan Wiger [EMAIL PROTECTED] Date: 16 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 245 Version: 1