Re: RFC 71 (v2) Legacy Perl $pkg'var should die
Plus, ' is already widely-used as a single-quote, so That's a good argument. Unambiguating the language and simplifying the parser. I agree. I think this is a *compelling* reason to kill off ' as a package name separator. As for Klingon.pm, it SPURNS your PATHETIC HUMAN ATTEMPTS to THWART it!! Take the ' separator; the MIGHTY Klingon module SHALL TRIUMPH regardless!!! ;-) Damian
Re: RFC 71 (v2) Legacy Perl $pkg'var should die
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 know this sounds "un-Perl", but Camel-3 doesn't even mention $pkg'var as more than a footnote, at least not that I could see. If it's not going to be taught or used in any modern code, then having Perl 6 silently accept: $pkg'var = 1; is very confusing. Plus, ' is already widely-used as a single-quote, so I ask you, my fellow countrypersons, would either of these make any sense: $pkg"var = 1; print ::Welcome back, $fullname!::; But the RFC is frozen, and Larry can always decide that D'oh and Klingon.pm are compelling reasons to keep it. ;-) -Nate
Re: RFC 71 (v2) Legacy Perl $pkg'var should die
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 single-quote, so That's a good argument. Unambiguating the language and simplifying the parser. -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse When faced with desperate circumstances, we must adapt. - Seven of Nine
RFC 71 (v2) Legacy Perl $pkg'var should die
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Legacy Perl $pkg'var should die =head1 VERSION Maintainer: Nathan Wiger [EMAIL PROTECTED] Date: 08 Aug 2000 Last Modified: 15 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 71 Version: 2 Status: Frozen =head1 ABSTRACT Perl used to use $pkg'var instead of the modern $pkg::var. This is still in Perl 5. It's gotta go. =head1 DESCRIPTION See above. =head1 IMPLEMENTATION See above. =head1 NOTES ON FREEZE Damian worried that this would mean Klingon.pm would no longer be portable to Perl 6. He failed to convince other people on the list that this was actually a bad thing. ;-) (kidding!!) =head1 REFERENCES Camel-3 p. 60 reminded me of this.
Re: RFC 71 (v2) Legacy Perl $pkg'var should die
On Sat, Sep 16, 2000 at 03:20:23AM -, Perl6 RFC Librarian wrote: 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? The only reason I saw was that $hash{a'b} doesn't DWIM... not exactly a stunning problem. (Yes, I am the author of D'oh::Year ;) -- Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED] Just Another Stupid Consultant Perl6 Kwalitee Ashuranse An ice cream has its unique frequencyAre you hungry for this ice cream? Or not? If you are, a certain part of your body is requesting to attract chemicals from this ice cream. If you don't have the appetite, your body doesn't need any chemical from the ice cream. Your brain is most conductive and serves as the middleman. --Alex Chiu, Immortality Guy