On Mon, May 02, 2005 at 10:51:57PM -0400, Uri Guttman wrote:
: LW == Larry Wall [EMAIL PROTECTED] writes:
:
: LW multi sub opensocket (
: LW Str +$mode = 'rw',
: LW Str +$encoding = 'auto',
: LW Str [EMAIL PROTECTED]) returns IO;
:
:
On Mon, May 02, 2005 at 03:53:42PM -0700, Larry Wall wrote:
: On Tue, May 03, 2005 at 12:32:58AM +0200, Juerd wrote:
: : How about
: :
: : open ::= File::open
: : URI::open
: : Sys::Pipe::open
: :
: : And put the other aliases in the module that CGI.pm-:standard-ishly
: : pollutes
On Mon, May 02, 2005 at 03:04:57AM -0600, Luke Palmer wrote:
: S12 says:
:
: subtype Str_not2b of Str where /^[isnt|arent|amnot|aint]$/;
:
: My brain parses this as:
:
: subtype Str_not2b[Str where /.../];
:
: Or:
:
: subtype Str_not2b[Str] where /.../;
:
: Neither of which
On Mon, May 02, 2005 at 05:42:47PM -0700, Larry Wall wrote:
: We're still discussing it on @Larry, but I think we can make that work.
Well, now I think .foo() won't work, since .foo should be reserved
for a sub ref attribute to be consistent. But I think all we have
to do is find some other
Larry Wall wrote:
On Mon, May 02, 2005 at 05:42:47PM -0700, Larry Wall wrote:
: We're still discussing it on @Larry, but I think we can make that work.
Sorry if I don't know, but where or what is @Larry?
I guess some IRC?
Well, now I think .foo() won't work, since .foo should be reserved
for a
Thomas Sandla writes:
Larry Wall wrote:
On Mon, May 02, 2005 at 05:42:47PM -0700, Larry Wall wrote:
: We're still discussing it on @Larry, but I think we can make that work.
Sorry if I don't know, but where or what is @Larry?
Ahh, you came in too late. I don't remember who coined it, but
With the recent discussion on type sigils, and the fact that Pugs
is moving toward the OO core, I'd like to inquire how the following
statements evaluate (or not):
# Compile time type arithmetic?
::Dual ::= ::Str | ::Num;
$*Dual ::= ::Str | ::Num;
# Run time type arithmetic?
Larry Wall skribis 2005-05-02 19:02 (-0700):
In any event, none of the proposals that bury the label is going to
be acceptable. As a vital visual element of control flow, the label
has to be out front where it can be seen.
Something that putting quotes around them accomplishes...
(I'd still
Juerd writes:
: I don't think the command should default to $_
: Why?!
Because $_ is primarily for the use of inner loops, not outer loops,
and open tends to be in the outer loop rather than the inner loop.
As someone who tries to write clean code, I agree that the outer loop
should
Luke Palmer skribis 2005-05-03 1:34 (-0600):
for @files { open; say uc for =$_; close; }
Wait, so you want open to both open the filename in $_ /and/ set $_ to
the opened filehandle?
You are right. The example code makes no sense at all.
say uc for =io($_);
I didn't know io was
Luke Palmer wrote:
Ahh, you came in too late. I don't remember who coined it, but @Larry
is the array of Larrys, that is, the design team.
Aha. What does [EMAIL PROTECTED] evaluate to? How do the elements of
@Larry communicate?
I agree with you there. $Larry has said that he wants `when` to
On Tue, 2005-05-03 at 05:33, Thomas Sandlaß wrote:
Luke Palmer wrote:
BTW, what does $.foo outside of class scope mean?
It means:
BEGIN { die Can't use \$.foo outside of class scope; }
That contradicts $Larry's statement: By the way, this probably goes along
with a policy of
On Tue, May 03, 2005 at 07:59:19AM -0400, Aaron Sherman wrote:
: I like the idea that $.foo ALWAYS means the $.foo in the current class.
: Anything else gets very ugly later on.
Well, since I'm not going with for self, I'm probably not going with
the $.foo meaning anything outside of the class
On Tue, May 03, 2005 at 11:22:06AM +0200, Juerd wrote:
: I didn't know io was blessed already.
It pretty much is, just not the subsequent overloading of and .
We'll use == and == instead.
Larry
On Tue, 2005-05-03 at 08:07, Larry Wall wrote:
On Tue, May 03, 2005 at 07:59:19AM -0400, Aaron Sherman wrote:
: On a side note about auto-accessors, if I say:
:
: class X {
: has $.foo;
: }
: class Y is X {
: has %.foo;
: }
:
: What happens to
On Tue, May 03, 2005 at 05:06:15PM +0800, Autrijus Tang wrote:
: With the recent discussion on type sigils, and the fact that Pugs
: is moving toward the OO core, I'd like to inquire how the following
: statements evaluate (or not):
:
: # Compile time type arithmetic?
: ::Dual ::= ::Str |
On Tue, May 03, 2005 at 08:29:22AM -0400, Aaron Sherman wrote:
: On Tue, 2005-05-03 at 08:07, Larry Wall wrote:
: On Tue, May 03, 2005 at 07:59:19AM -0400, Aaron Sherman wrote:
:
: : On a side note about auto-accessors, if I say:
: :
: : class X {
: : has $.foo;
: : }
: :
On Mon, Apr 25, 2005 at 02:37:40PM -0500, Rod Adams wrote:
: Something that crossed my mind while writing this: Does
:
:for { say } == @a;
:
: Work?
Nope. The brackets where a term is expected would be misconstrued
as an argument to the for. Maybe we need an @= for a placeholder:
for
On Mon, Apr 25, 2005 at 08:33:06PM +0200, Juerd wrote:
: I think it would be great to be able to use a junction with use:
:
: use strict warnings;
:
: A disjunction could mean any of the listed modules suffices. This comes
: in handy when you code something that will work with any of three
Larry Wall skribis 2005-05-03 6:22 (-0700):
sub foo (IntStr block) {...}
sub foo (:(IntStr) block) {...}
Alternately, we install a small heuristic and document it in the fine print.
I personally would not mind requiring whitespace around in those
cases.
If parens are used for the
On Tue, May 03, 2005 at 05:32:44AM -0700, Larry Wall wrote:
: # Type Instantiation?
: sub apply (fun::a returns ::b, ::a $arg) returns ::b {
: fun($arg);
: }
The first parameter would be fun:(::a) these days, but yes.
(Stylistically, I'd leave the off the call.)
So, the
Juerd wrote:
I personally would not mind requiring whitespace around in those
cases.
Same here. Actually the whitespace after makes the destinction, or not?
If parens are used for the grouping, then why is the colon required?
Because it escapes into type-space like ::() escapes into name-space
On May 3, 2005, at 00:04 , Luke Palmer wrote:
I agree with you there. $Larry has said that he wants `when` to work
Shouldn't that be @Larry[0]?
Cheers,
David
smime.p7s
Description: S/MIME cryptographic signature
On Tue, May 03, 2005 at 09:00:49AM -0700, David Wheeler wrote:
: On May 3, 2005, at 00:04 , Luke Palmer wrote:
:
: I agree with you there. $Larry has said that he wants `when` to work
:
: Shouldn't that be @Larry[0]?
That depends on whether you think the rest of them are pushy or shiftless.
Autrijus Tang wrote:
On Tue, May 03, 2005 at 05:32:44AM -0700, Larry Wall wrote:
: # Type Instantiation?
: sub apply (fun::a returns ::b, ::a $arg) returns ::b {
: fun($arg);
: }
The first parameter would be fun:(::a) these days, but yes.
(Stylistically, I'd leave the off the
Perl 6 Summary for 2004-04-26 through 2005-05-03
All~
Welcome to another weeks summary. This week I shall endeavor not to
accidentally delete my summary or destroy the world. So here we go with
p6c.
Perl 6 Compilers
implicit $_ on for loops
Kiran Kumar found a bug in
26 matches
Mail list logo