Re: The distinction between do BLOCK while COND and EXPR while COND should go

2000-09-04 Thread Piers Cawley
Damian Conway [EMAIL PROTECTED] writes: Modulo some superpositional silliness, Hey! I resemble that remark! And we love you for it. -- Piers

Re: Exceptions and Objects

2000-08-15 Thread Piers Cawley
Jonathan Scott Duff [EMAIL PROTECTED] writes: On Sun, Aug 13, 2000 at 10:51:24PM -0700, Peter Scott wrote: Could be. I'd be interested in seeing non-OOP proposals that do what I want exceptions to do, I have a hard time imagining one. Well, what is it that you want exceptions to do?

Re: RFC 14 (v2) Modify open() to support FileObjects and

2000-08-10 Thread Piers Cawley
Nick Ing-Simmons [EMAIL PROTECTED] writes: Graham Barr [EMAIL PROTECTED] writes: On Wed, Aug 09, 2000 at 11:41:42AM -0500, Jonathan Scott Duff wrote: How about this? open '/etc/passwd'; # file OK open '/usr/local/bin/'; # directory (note the trailing

Re: RFC 137 (v1) Overview: Perl OO should Inot be fundamentally changed.

2000-08-22 Thread Piers Cawley
Perl6 RFC Librarian [EMAIL PROTECTED] writes: =item * Changes to the semantics of Cbless so that, after associating an object with a class, the class's CINIT methods are automatically called on the object. An additional trailing C@ parameter for Cbless, to allow arguments to be passed to

Re: $ME in a method called as a subroutine

2000-08-23 Thread Piers Cawley
Markus Peter [EMAIL PROTECTED] writes: --On 22.08.2000 18:24 Uhr + David L. Nicol wrote: Regardless of what its called, in a method called as a subroutine, the variable could refer to the last instance of this kind of object used by this thread. Hmm Does that mean if I once

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

2000-08-30 Thread Piers Cawley
Perl6 RFC Librarian [EMAIL PROTECTED] writes: This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE my Dog $spot should call a constructor implicitly Eeeeww. Most of the time I use 'my Dog $spot' is along the lines of: package Dog; sub

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

2000-09-04 Thread Piers Cawley
Michael Fowler [EMAIL PROTECTED] writes: On Fri, Sep 01, 2000 at 05:23:27PM +0200, Slaven Rezic wrote: Often, there is the case that "my" is used before actually assigning a value to it. For example: my Foo $foo; if ($cond1) { $foo = new Foo 1, 2, 3; } else {

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

2000-09-04 Thread Piers Cawley
"David E. Wheeler" [EMAIL PROTECTED] writes: On 1 Sep 2000, Perl6 RFC Librarian wrote: This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Objects : Private keys and methods Here, here amen, Damian! This one gets my instant vote! And

Re: RFC 193 (v1) Objects : Core support for method delegation

2000-09-05 Thread Piers Cawley
Michael G Schwern [EMAIL PROTECTED] writes: On Mon, Sep 04, 2000 at 09:53:39PM -, Perl6 RFC Librarian wrote: Objects : Core support for method delegation I like it! One gripe (of course)... The proposed delegation mechanism would work via a pragma: use delegation

Re: RFC 193 (v1) Objects : Core support for method delegation

2000-09-05 Thread Piers Cawley
Perl6 RFC Librarian [EMAIL PROTECTED] writes: This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Objects : Core support for method delegation I *want* this. Delegation is cool. Delegation that gets set up at compile time and is marked as such and can

Draft RFC: my Dog $spot is just an assertion

2000-09-12 Thread Piers Cawley
=head1 TITLE Cmy Dog $spot is just an assertion =head1 VERSION Maintainer: Piers Cawley [EMAIL PROTECTED] Date: 12th September 2000 Last Modified: 12th September 2000 Mailing List: [EMAIL PROTECTED] Version: 0 Status: Draft =head1 ABSTRACT The behaviour of the my Dog $spot syntax

Re: Draft RFC: my Dog $spot is just an assertion

2000-09-13 Thread Piers Cawley
Damian Conway [EMAIL PROTECTED] writes: Piers wrote: The behaviour of the my Dog $spot syntax should simply be an assertion of the invariant: (!defined($spot) || (ref($spot) $spot-isa('Dog))) (!defined($spot) || (ref($spot) $spot-isa('Dog')))

Re: Draft RFC: new pragma: Cuse namespace

2000-09-13 Thread Piers Cawley
Hildo Biersma [EMAIL PROTECTED] writes: Piers Cawley wrote: =head1 ABSTRACT Cmy Big::Long::Prefix::Class $object = Big::Long::Prefix::Class-Egtnew is a pain in the bum to type. We should replace this with use namespace 'Big::Long::Prefix'; my ::Class $object = ::Class

Re: Draft RFC: new pragma: Cuse namespace

2000-09-14 Thread Piers Cawley
Graham Barr [EMAIL PROTECTED] writes: I would suggest that anyone want to contribute to this discussion should first read the thread about the addition of this pragma to perl5 in the perl5-porters archives

Re: RFC 218 (v1) Cmy Dog $spot is just an assertion

2000-09-14 Thread Piers Cawley
Perl6 RFC Librarian [EMAIL PROTECTED] writes: This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Cmy Dog $spot is just an assertion =head1 VERSION Maintainer: Piers Cawley [EMAIL PROTECTED] Date: 13th September 2000 Mailing List: [EMAIL

Re: RFC 218 (v1) Cmy Dog $spot is just an assertion

2000-09-14 Thread Piers Cawley
Nathan Torkington [EMAIL PROTECTED] writes: Perl6 RFC Librarian writes: I therefore propose that Cmy Dog $spot comes to mean that C$spot is restricted to being either undefined or a reference to a CDog object (or any subclasses of Dog). Simply having this implicit assertion can be

Re: RFC 218 (v1) Cmy Dog $spot is just an assertion

2000-09-14 Thread Piers Cawley
Michael G Schwern [EMAIL PROTECTED] writes: On Wed, Sep 13, 2000 at 08:43:43PM -, Perl6 RFC Librarian wrote: The behaviour of the my Dog $spot syntax should simply be an assertion of the invariant: (!defined($spot) || (ref($spot) $spot-isa('Dog))) What about the current

Re: RFC 218 (v1) Cmy Dog $spot is just an assertion

2000-09-18 Thread Piers Cawley
Michael G Schwern [EMAIL PROTECTED] writes: On Thu, Sep 14, 2000 at 02:19:38PM +0100, Piers Cawley wrote: Michael G Schwern [EMAIL PROTECTED] writes: package Dog; use fields qw(this night up); my Dog $ph = []; $ph-{this} = "that"; That works? I t

Re: RFC 218 (v1) Cmy Dog $spot is just an assertion

2000-09-18 Thread Piers Cawley
Damian Conway [EMAIL PROTECTED] writes: Piers wrote: I'm kind of tempted to look at adding another pragma to go with 'use base' along the lines of: use implements 'Interface'; Which is almost entirely like Cuse base 'Interface' but with 'Interface'

Re: RFC 218 (v1) Cmy Dog $spot is just an assertion

2000-09-19 Thread Piers Cawley
Michael G Schwern [EMAIL PROTECTED] writes: On Mon, Sep 18, 2000 at 09:48:27AM +0100, Piers Cawley wrote: Michael G Schwern [EMAIL PROTECTED] writes: Nope. fields::new() basically just does Cbless [\%{"$class\::FIELDS"}], $class, but the current pseudohash implementati

Re: RFC 265 (v1) Interface polymorphism considered lovely

2000-09-21 Thread Piers Cawley
Nathan Wiger [EMAIL PROTECTED] writes: * The new Cinterface keyword would be unnecessary if *package specifications* could take attributes: interface Fetcher; would then become: package Fetcher : interface; I'm not

Re: RFC 265 (v1) Interface polymorphism considered lovely

2000-09-21 Thread Piers Cawley
Nathan Wiger [EMAIL PROTECTED] writes: By specifying "use interface" explicitly, you can make sure that your class follows the interface spec. Otherwise, you rely on other classes in the hierarchy above you doing so, and then you indirectly inheriting from that interface. So "use interface"

Re: RFC 319 (v1) Transparently integrate Ctie

2000-09-26 Thread Piers Cawley
Perl6 RFC Librarian [EMAIL PROTECTED] writes: This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Transparently integrate Ctie On the whole I think I'm liking this. But it needs work. my packed $a; # just an assertion, RFC 218 $a =

Re: RFC 319 (v1) Transparently integrate Ctie

2000-09-27 Thread Piers Cawley
Nathan Wiger [EMAIL PROTECTED] writes: I'm kind of curious to know what you think would happen with the following. I've commented where I'm confident... interface Number; sub TIESCALAR; sub STORE; sub FETCH; package integer implements Number; # I really

Re: RFC 161 (v4) Everything in Perl becomes an object.

2000-09-27 Thread Piers Cawley
Simon Cozens [EMAIL PROTECTED] writes: On Wed, Sep 27, 2000 at 05:25:28AM -, Perl6 RFC Librarian wrote: Not an awful lot was said once this RFC was condensed down to "Everything becomes an object". I believe some implementation and conceptual hurdles exist which have discouraged more

Re: Stupid Newbie Question

2001-11-09 Thread Piers Cawley
Dan Sugalski [EMAIL PROTECTED] writes: At 04:21 PM 11/8/2001 -0800, John Rudd wrote: So, does this mean my other heart's desire of operator overloading might be coming forth? (I know, I know, here I am, a smalltalker, asking for operator overloading ... but, what are the smalltalkers gonna do,

Re: RFC 308 (v1) Ban Perl hooks into regexes

2000-09-26 Thread Piers Cawley
Perl6 RFC Librarian [EMAIL PROTECTED] writes: This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Ban Perl hooks into regexes =head1 VERSION Maintainer: Simon Cozens [EMAIL PROTECTED] Date: 25 Sep 2000 Mailing List: [EMAIL PROTECTED]

Re: RFC 331 (v1) Consolidate the $1 and C\1 notations

2000-09-29 Thread Piers Cawley
Jonathan Scott Duff [EMAIL PROTECTED] writes: On Thu, Sep 28, 2000 at 08:57:39PM -, Perl6 RFC Librarian wrote: ${P1} means what $1 currently means (first match in last regex) I'm sorry that I don't have anything more constructive to say than "ick", but ... Ick. I'm with the 'Ick'

Re: RFC 97 (v1) prototype-based method overloading

2000-08-16 Thread Piers Cawley
Damian Conway [EMAIL PROTECTED] writes: Why would anyone want to select a different method based upon the arguments. Have you seen Class::Multimethods? This kind of despatch can be very useful. Of course, the existence of Class::Multimethods proves that it can be

Re: RFC 299 (v1) C@STACK - a modifyable Ccaller()

2000-09-26 Thread Piers Cawley
Perl6 RFC Librarian [EMAIL PROTECTED] writes: This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE C@STACK - a modifyable Ccaller() Why am I having bad thoughts along the lines of: local @STACK = @SAVED_STACK I don't know what'd do, but it'd be

Re: perl6 requirements

2000-08-01 Thread Piers Cawley
Edwin Steiner [EMAIL PROTECTED] writes: In my opinion Perl lacks (at least partially) some features which I consider important for scripting languages: * elimination of pointers (If I want to spend my time considering how many dereference operators to use I'll go for ***C++). I'm aware,

Re: perl 6 requirements

2000-08-01 Thread Piers Cawley
Chaim Frenkel [EMAIL PROTECTED] writes: "CF" == Chaim Frenkel [EMAIL PROTECTED] writes: "TA" == Ted Ashton [EMAIL PROTECTED] writes: TA In general, they do what you want, unless you want consistency. CF Randal, Tom, et. al. CF How locked in to your brain is this lack of consistency?

Re: type-checking [Was: What is Perl?]

2000-08-02 Thread Piers Cawley
Damian Conway [EMAIL PROTECTED] writes: Peter Scott [EMAIL PROTECTED] (I think -- Piers) writes: Though a good post condition would benefit from some sort of unconditional catch of return, I suppose. Perhaps allowing continue on the outer sub block... Argh, no! A good

Re: RFC: lexical variables made default

2000-08-04 Thread Piers Cawley
Tom Christiansen [EMAIL PROTECTED] writes: [EMAIL PROTECTED] wrote: Perl's similarity to English is one of the things that makes it Fun. OTOH, being fun (which I admit it is) is one of the reasons many people don't want to think Perl is a serious language. So what? Well said.

Re: RFC: lexical variables made default

2000-08-04 Thread Piers Cawley
Damian Conway [EMAIL PROTECTED] writes: Perl's similarity to English is one of the things that makes it Fun. OTOH, being fun (which I admit it is) is one of the reasons many people don't want to think Perl is a serious language. Not saying we should eliminate all

Re: perl 6 requirements

2000-08-04 Thread Piers Cawley
Tom Christiansen [EMAIL PROTECTED] writes: True, but maybe a lower precedance keword is needed like we did or || and . I think someone suggested "then" print $string1, $string2, "\n" then return 3 if $cond; then again, maybe not. Why not just piss everybody off? return 3

Re: RFC: Filehandle type-defining punctuation

2000-08-04 Thread Piers Cawley
Tom Christiansen [EMAIL PROTECTED] writes: But that, precisely, was my point: Arrays *and* hashes. If there is more than one plural whatzitz, then why can't there be more than one singular whatzitz? (and don't say, "because plural *means* more than one" :-). If having a filehandle

Re: RFC stuff

2000-08-04 Thread Piers Cawley
Nathan Torkington [EMAIL PROTECTED] writes: Tom Christiansen writes: What is the purpose of ghettoizing everying cohering topic? Making us subscribe to infinite lists to wear us down? Yes. If you really care about the topic, you'll join the list. If you don't care, stay off the

Re: Deep copy

2000-08-07 Thread Piers Cawley
Dan Sugalski [EMAIL PROTECTED] writes: At 05:31 AM 8/7/00 +1000, Damian Conway wrote: Another one for my wish list: deep copying support built in. A devil inside me thinks this should be a new assignment operator. Damian? Sounds like this is up your alley. I want to do a

Re: RFC 53 (v10) Built-ins: Merge and generalize Cindex

2000-08-07 Thread Piers Cawley
Perl6 RFC Librarian [EMAIL PROTECTED] writes: =head1 DESCRIPTION At present Cindex only returns the index of the first occurrence of a specified substring. It is proposed that Cindex take a fourth parameter telling it which occurrence of a specified substring to locate: $first =

Re: RFC: Rename local() operator

2000-08-07 Thread Piers Cawley
Nathan Wiger [EMAIL PROTECTED] writes: But it isn't "here" that's the problem. If we just wanted to change the value "here", we could use my(). The problem is that local() changes the value for somewhere else as well as here. Well, as has been pointed out, special^Wlocalized

Re: RFC 55 (v1) Compilation: Remove requirement for fina

2000-08-07 Thread Piers Cawley
Nathan Torkington [EMAIL PROTECTED] writes: John Porter writes: Compilation: Remove requirement for final true value in require'd and do'ed files Do not. I use this feature. Is there any reason you couldn't use "die" instead? Is there any reason that both couldn't be used at the

Re: RFC 59 (v1) Proposal to utilize C* as the prefix t

2000-08-08 Thread Piers Cawley
Perl6 RFC Librarian [EMAIL PROTECTED] writes: This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Proposal to utilize C* as the prefix to magic subroutines I freely accept that this is not anything approaching a reasoned critique but: Yecch! --

Re: wildcard includes

2000-08-08 Thread Piers Cawley
"Peter Bevan" [EMAIL PROTECTED] writes: Just a thought, but I think it woul be a good idea to include the 'java-esqe' practice of including packages via foo.barr.* or in Perl's case Foo::Bar::* (assume that the module include syntax remains the same)... I can see that in the case of some

Re: Things to remove

2000-08-08 Thread Piers Cawley
Leon Brocard [EMAIL PROTECTED] writes: Martyn J. Pearce sent the following bits through the ether: I use this in one-liners, and it's _dead_ handy May I suggest that Perl6 will be a different language? I've seen the "I use it, don't change it" argument a couple of times now and it's

Re: RFC 59 (v1) Proposal to utilize C* as the prefix t

2000-08-09 Thread Piers Cawley
Peter Scott [EMAIL PROTECTED] writes: At 09:28 AM 8/8/00 +0100, Piers Cawley wrote: Peter Scott [EMAIL PROTECTED] writes: At 12:07 AM 8/8/00 +0200, Bart Lateur wrote: On Mon, 07 Aug 2000 10:56:40 -0700, Peter Scott wrote: I meant that BEGIN, END, and INIT aren't declared

Re: access to pod/doc text by code

2000-08-09 Thread Piers Cawley
Uri Guttman [EMAIL PROTECTED] writes: some people have mentioned help strings as special parts of a sub declaration like gnu lisp has. this could be more support for that type of thing. but i don't want it to be too strange. Hmm... sub foo ($$;@) :lvalue "Documentation string here"

Re: RFC 23 (v2) Higher order functions

2000-08-09 Thread Piers Cawley
Peter Scott [EMAIL PROTECTED] writes: =head1 TITLE Higher order functions Well, this should keep the Obfuscated Perl Contest going for at least another decade :-) Whilst still being deeply useful in non obfuscatory contexts too. -- Piers

Re: RFC 48 (v2) Objects should have builtin stringifying

2000-08-10 Thread Piers Cawley
John Porter [EMAIL PROTECTED] writes: Michael Fowler wrote: I think a stringified reference is worth seeing, moreso than a simple undef, for debugging purposes if nothing else. I personally would like to have the stringification of refs be a symmetric operation, i.e. such a string

Re: RFC 8 (v2) The AUTOLOAD subroutine should be able t

2000-08-11 Thread Piers Cawley
Graham Barr [EMAIL PROTECTED] writes: Damian Conway [EMAIL PROTECTED] writes: Leon Brocard writes: =head2 $AUTOLOAD While we're at it, it *may* be a good idea to remove the global $AUTOLOAD variable and instead pass it as the first parameter of the AUTOLOAD

Re: the currying operator

2000-08-11 Thread Piers Cawley
Graham Barr [EMAIL PROTECTED] writes: On Fri, Aug 11, 2000 at 02:52:32AM -0700, Nathan Wiger wrote: Mike- Jeremy's got a great explanation of this, which I'll paraphrase, but the discussion went through lots of iterations. Think of the ^ as a carat or thumbtack, holding the place for

Re: the currying operator

2000-08-11 Thread Piers Cawley
Graham Barr [EMAIL PROTECTED] writes: On Fri, Aug 11, 2000 at 01:47:12PM +0100, Piers Cawley wrote: /^_/ What is that matching ? We've done this. It's matching a string that begins with '_'. Which is why, if you want to disambiguate you do /^{_}/ just like you do

Re: RFC 80 (v1): Exception objects and classes for builtins

2000-08-11 Thread Piers Cawley
John Porter [EMAIL PROTECTED] writes: Piers Cawley wrote: The (continue|always|finally|whatever) clause will *always* be executed, even if one of the catch clauses does a die, so you can use this to roll back the database transaction or whatever else was going on and restore any

Re: RFC 76 (v1) Builtin: reduce

2000-08-11 Thread Piers Cawley
John Porter [EMAIL PROTECTED] writes: Simpler semantics and you can always ref a L(OL(OL(OL...etc.))) if you need multidimensionals. Combined with highlander variables, and there ceases to be a problem. Will you stop with the highlander variables? -- Piers

Re: RFC 80 (v1): Exception objects and classes for builtins

2000-08-11 Thread Piers Cawley
Chaim Frenkel [EMAIL PROTECTED] writes: "PC" == Piers Cawley [EMAIL PROTECTED] writes: PC The (continue|always|finally|whatever) clause will *always* be PC executed, even if one of the catch clauses does a die, so you can use PC this to roll back the database transaction or wha

Re: RFC 76 (v1) Builtin: reduce

2000-08-16 Thread Piers Cawley
Nathan Wiger [EMAIL PROTECTED] writes: Jarkko Hietaniemi wrote: 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: Make lvalue subs the default (was Re: RFC 107 (v1) lvalue subs should receive the rvalue as an argument)

2000-08-16 Thread Piers Cawley
Nathan Wiger [EMAIL PROTECTED] writes: Nathan Torkington wrote: Not every subroutine corresponds to a method call exposing object-internal data. Most of my subroutines *do* something and make no sense to be called lvaluably. Explicit marking the compiler pick up assignments to

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

2000-08-16 Thread Piers Cawley
"J. David Blackstone" [EMAIL PROTECTED] writes: I find the standard prefix symbols so intuitive I find it hard to articulate the reasons why I balk at giving them up. It's like explaining breathing or the ability to distinguish colors. Bravo! What he said! Hear, hear! [FX: Waves order

Re: English language basis for throw

2000-08-16 Thread Piers Cawley
[EMAIL PROTECTED] writes: Please take this discussion to the new -errors sublist. Thanks in advance! Exceptions are not necessarily errors. This belongs in perl-language-flow surely? -- Piers

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

2000-08-16 Thread Piers Cawley
Jonathan Scott Duff [EMAIL PROTECTED] writes: On Wed, Aug 16, 2000 at 10:59:38AM +0100, Piers Cawley wrote: Perl6 RFC Librarian [EMAIL PROTECTED] writes: This RFC proposes that lvalue subs, when invoked as such, should receive the rvalue being assigned to it as an argument. I'm

Re: RFC 147 (v2) Split Scalars and Objects/References into Two Types

2000-08-29 Thread Piers Cawley
Nathan Wigner, disguised as Perl6 RFC Librarian [EMAIL PROTECTED] writes: [...] Gut feeling, I don't like this proposal. Examples coming up. Increases in namespace are basically always beneficial. =head2 Potential Problems This approach is not without its problems. These need to be

Re: RFC 167 (v2) Simplify Cdo BLOCK Syntax

2000-08-30 Thread Piers Cawley
Perl6 RFC Librarian [EMAIL PROTECTED] writes: =head1 DESCRIPTION One of the most common mistakes I make is forgetting a C; after Cdo BLOCK, probably because I'm thinking ``if'' and an if doesn't require a C: after it's closing C}. I'll type, for example, $cond and do { #

Re: RFC 33 (v2) Eliminate bareword filehandles.

2000-08-30 Thread Piers Cawley
Tom Christiansen [EMAIL PROTECTED] writes: This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Eliminate bareword filehandles. "Eliminate" is such a strong word. You're saying that we can't use STDIN, STDOUT, STDERR, ARGV, or DATA anymore? Heck,

Re: RFC 168 (v1) Built-in functions should be functions

2000-08-30 Thread Piers Cawley
Tom Christiansen [EMAIL PROTECTED] writes: I intend to extend the parameter lists RFC to cover optional (non-tailing) arguments. Will this include having typed variadic functions, allowing you, for example, to say something like This function takes any number of arrays, all passed

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

2000-08-11 Thread Piers Cawley
Piers Cawley [EMAIL PROTECTED] writes: Damian Conway [EMAIL PROTECTED] writes: Are the two values of a pair restricted in anyway? All your examples were scalar. Yes. The two components must be scalars. The key is stringified iff it's a bareword. Otherwise no restrictions

Re: RFC 179 (v1) More functions from set theory to manipulate arrays

2000-09-12 Thread Piers Cawley
Tom Christiansen [EMAIL PROTECTED] writes: I don't want a set representation. I want set operations. And somehow for this having to add a use statment and who knows what overhead for what seems to be a simple operation is a pain. The overhead is not that it should be a module, but rather,

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

2000-09-18 Thread Piers Cawley
Perl6 RFC Librarian [EMAIL PROTECTED] writes: This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Objects: Cuse invocant pragma =head1 VERSION Maintainer: Damian Conway [EMAIL PROTECTED] Date: 14 September 2000 Mailing List: [EMAIL

Re: IDEA: my() extensions and attribute declarations

2000-09-21 Thread Piers Cawley
Nathan Wiger [EMAIL PROTECTED] writes: It seems potentially useful to be able to say: my Dog, Cat $fluffy; As a way to say "$fluffy can be either a Dog or a Cat". Since variables are prefixed, anything comma-separated up to the variable is an alternate class for that variable: Eurgh.

Re: perl6storm #0050

2000-09-27 Thread Piers Cawley
Robert Mathews [EMAIL PROTECTED] writes: Simon Cozens wrote: (defun Schwartzian (func list) (mapcar (lambda (x) (car x)) (sort (mapcar (lambda (x) (cons x (funcall func x))) list ) (lambda (x y) ( (cdr x) (cdr y))) ) ) ) Maybe

Re: perl6storm #0050

2000-09-27 Thread Piers Cawley
Simon Cozens [EMAIL PROTECTED] writes: Readability is a programmer feature, not a language feature. The most important optimization a programmer can make is to optimize for understanding. -- Piers

Re: RFC 303 (v1) Keep Cuse less, but make it work.

2000-09-27 Thread Piers Cawley
Simon Cozens [EMAIL PROTECTED] writes: On Wed, Sep 27, 2000 at 03:49:10PM +0100, Tom Christiansen wrote: Don't change "use less" to "use optimize". We don't need to ruin the cuteness. "use less 'rolled_loops';" sounds really weird. We obviously need to introduce a synonymous Cuse fewer

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. Yes

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: Murdering @ISA considered cruel and unusual

2000-09-29 Thread Piers Cawley
Simon Cozens [EMAIL PROTECTED] writes: 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,

Re: RFC 329 (v1) Cuse syntax

2000-09-29 Thread Piers Cawley
Perl6 RFC Librarian [EMAIL PROTECTED] writes: This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Cuse syntax [ ... ] =head1 ABSTRACT A pragma to modify the syntax of Perl 6 at run time. Oh yes. [...] =head1 IMPLEMENTATION First,

IDEA: lexically scoped subs anyone

2000-09-29 Thread Piers Cawley
Did anyone suggest the following yet? package Foo; my sub _helper_function { ... } sub public_function { ... helper_function(...); ... } # Some other file: use Foo; Foo::public_function(@args); # Okay Foo::_helper_function(@args); #

Re: RFC 303 (v1) Keep Cuse less, but make it work.

2000-10-02 Thread Piers Cawley
Alan Gutierrez [EMAIL PROTECTED] writes: On 27 Sep 2000, Piers Cawley wrote: Simon Cozens [EMAIL PROTECTED] writes: On Wed, Sep 27, 2000 at 03:49:10PM +0100, Tom Christiansen wrote: Don't change "use less" to "use optimize". We don't need to ruin the c

Re: RFC 339 (v1) caller-eval BLOCK

2000-09-29 Thread Piers Cawley
Perl6 RFC Librarian [EMAIL PROTECTED] writes: 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

Re: Cya dudes

2000-09-29 Thread Piers Cawley
"Ed Mills" [EMAIL PROTECTED] writes: 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. Hmm... not my experience. But then I've only seen your message here because of Simon's response to it, my spamfilter sees your

Re: Cya dudes

2000-09-29 Thread Piers Cawley
Piers Cawley [EMAIL PROTECTED] writes: "Ed Mills" [EMAIL PROTECTED] writes: 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. Hmm... not my experience. But then I've only seen your message her

Re: RFC 337 (v1) Common attribute system to allow user-defined, extensible attributes

2000-09-29 Thread Piers Cawley
Perl6 RFC Librarian [EMAIL PROTECTED] writes: This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Common attribute system to allow user-defined, extensible attributes =head1 VERSION Maintainer: Nathan Wiger [EMAIL PROTECTED] Date: 28 Sep

Re: RFC 269 (v1) Perl should not abort when a required file yields a false value

2000-09-25 Thread Piers Cawley
Perl6 RFC Librarian [EMAIL PROTECTED] writes: This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Perl should not abort when a required file yields a false value We had this RFC from Damian already didn't we? -- Piers

Re: RFC 344 (v2) Elements of @_ should be read-only by default

2000-10-02 Thread Piers Cawley
Perl6 RFC Librarian [EMAIL PROTECTED] writes: This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Elements of @_ should be read-only by default =head1 VERSION Maintainer: John Tobey [EMAIL PROTECTED] Date: 28 Sep 2000 Last Modified: 1 Oct

Re: TIL redux (was Re: What will the Perl6 code name be?)

2000-10-24 Thread Piers Cawley
Ariel Scolnicov [EMAIL PROTECTED] writes: [ A bunch of stuff ] Er, chaps, not wishing to tread on Skud's moderatorial toes and all, but shouldn't all this be in perl6-internals? Reply-To: set. -- Piers

Re: [Fwd: Re: [FWP] sorting text in human-order]

2000-12-29 Thread Piers Cawley
"David L. Nicol" [EMAIL PROTECTED] writes: Piers Cawley [EMAIL PROTECTED] writes: [EMAIL PROTECTED] (Yitzchak Scott-Thoennes) writes: $srt =~ tr/0-9a-z\xe9/a-jA-ZE/; # uc sort nums after letters `10' is going to sort before `2' with that rule. Having done the who

Re: [FWP] sorting text in human-order

2001-01-03 Thread Piers Cawley
"David L. Nicol" [EMAIL PROTECTED] writes: Marc Lehmann wrote: On Sat, Dec 30, 2000 at 05:31:29AM +, "David L. Nicol" [EMAIL PROTECTED] wrote: I do not know exactly what the perl5 default sort heuristic is, aside that it tries to DWIM both numeric and string data. There is

Re: [FWP] sorting text in human-order

2001-01-04 Thread Piers Cawley
Piers Cawley [EMAIL PROTECTED] writes: "David L. Nicol" [EMAIL PROTECTED] writes: Marc Lehmann wrote: On Sat, Dec 30, 2000 at 05:31:29AM +, "David L. Nicol" [EMAIL PROTECTED] wrote: I do not know exactly what the perl5 default sort heuristic is, aside t

Re: [FWP] sorting text in human-order

2001-01-04 Thread Piers Cawley
David Cantrell [EMAIL PROTECTED] writes: On Thu, Jan 04, 2001 at 09:28:26AM +, Piers Cawley wrote: And for 'proper' library type sorting (assuming all works are in English) we should really be doing something like: require Lingua::EN::Numbers; s/(\d+(?:\.\d+))/Lingua

[]-isa('Foo') to not throw exceptions

2001-01-04 Thread Piers Cawley
Did we do this one already? I have an embarrassingly large amount of code that has to do Ceval { $foo-isa('Foo') }, or Ceval { $foo-can('Bar') } because there is a chance that C$foo is an unblessed reference. I would use UNIVERSAL::can directly, but I have some code (a container/decorator

Re: [FWP] sorting text in human-order

2001-01-05 Thread Piers Cawley
Glenn Linderman [EMAIL PROTECTED] writes: David Cantrell wrote: And in any case, I can think of three different ways of saying 1821 in English alone. One thousand eight hundred and twenty one One thousand eight hundred twenty one Eighteen hundred and twenty one As far as *I* am

Re: RFC on Coexistance and simulaneous use of multiple module version s?

2001-01-27 Thread Piers Cawley
[EMAIL PROTECTED] (Andreas J. Koenig) writes: On Fri, 26 Jan 2001 16:37:23 -0500, Michael G Schwern [EMAIL PROTECTED] said: from what I remember we discussed an idea to allow people and organizations to produce their own list of approved modules. This is already possible with the

Re: RFC on Coexistance and simulaneous use of multiple module version s?

2001-01-27 Thread Piers Cawley
Jarkko Hietaniemi [EMAIL PROTECTED] writes: Larry mumbled something like "implements" and "interface". So to say package Net::FTP::Foo implements Net::FTP; But I don't think, anybody wrote an RFC about the plan. I did. Or something like it. And I've got a couple of

Re: JWZ on s/Java/Perl/

2001-01-29 Thread Piers Cawley
"Branden" [EMAIL PROTECTED] writes: Of course, C++ has no GC, which is a good thing, but you can always fake it with Refcounts, which is much more efficient, and easily feasable with C++. Err... current research shows that the refcount approach is one of the slowest forms of GC, and it

Re: JWZ on s/Java/Perl/

2001-02-05 Thread Piers Cawley
"Branden" [EMAIL PROTECTED] writes: Piers Cawley wrote: "Branden" [EMAIL PROTECTED] writes: Of course, C++ has no GC, which is a good thing, but you can always fake it with Refcounts, which is much more efficient, and easily feasable with C++. Err... cu

Re: JWZ on s/Java/Perl/

2001-02-10 Thread Piers Cawley
Mark Koopman [EMAIL PROTECTED] writes: On Fri, 09 Feb 2001 12:06:12 -0500, Ken Fox wrote: That may work for C, but not for Perl. sub test { my($foo, $bar, %baz); ... return \%baz; } You may notice that only PART of the locally malloced

Re: Garbage collection (was Re: JWZ on s/Java/Perl/)

2001-02-12 Thread Piers Cawley
Dan Sugalski [EMAIL PROTECTED] writes: At 10:38 AM 2/12/2001 -0500, Sam Tregar wrote: On Mon, 12 Feb 2001, Dan Sugalski wrote: Perl needs some level of tracking for objects with finalization attached to them. Full refcounting isn't required, however. I think I've heard you state

Re: Closures and default lexical-scope for subs

2001-02-19 Thread Piers Cawley
Peter Scott [EMAIL PROTECTED] writes: At 09:01 PM 2/15/01 +0100, [EMAIL PROTECTED] wrote: On Thu, Feb 15, 2001 at 11:08:47AM -0800, Edward Peschko wrote: However, that still doesn't get rid of the gotchas - personally I think that: my $a, $b, $c; should be an error, a warning,

Re: What can we optimize (was Re: Schwartzian transforms)

2001-03-29 Thread Piers Cawley
Dan Sugalski [EMAIL PROTECTED] writes: True enough. This is a small subset of general optimizations. For example, this: $i = 0; foreach (1..1000) { $i++; } can be easily optimized to: $i = 1000; and most language implementations with any sort of optimizer will

Re: Perl culture, perl readabillity

2001-04-04 Thread Piers Cawley
[EMAIL PROTECTED] writes: English, by comparison shows the effects of protracted foreign occupation of English speaking peoples by conquerors who spoke a foreign language. And also of protacted occupation of foreign countries by English speaking conquerors. Witness the number of Indian loan

Re: Larry's Apocalypse 1

2001-04-06 Thread Piers Cawley
Jarkko Hietaniemi [EMAIL PROTECTED] writes: On Wed, Apr 04, 2001 at 11:46:12PM -0700, Nathan Torkington wrote: Not a comment at all on it? Was I accidentally unsubscribed to perl6-language? *tap* *tap* is this thing on? Nat Me, I've been racking my brain to figure out whether

  1   2   3   4   5   >