On Sat, Aug 14, 2004 at 12:32:30AM -0400, Joe Gottman wrote:
:Doesn't the concept of an anonymous named param (in the fourth and fifth
: examples above) seem like an oxymoron? If it's anonymous it can't have a
: name (or at least we can't know its name).
It's anonymous only in the sense that
> -Original Message-
> 1d) Additional arguments may occur as adverbs *only* if there
> are explicit parens. (Or in the absence of parens they may
> parse as arguments when a term is expected--but then they're
> not adverbs, just named arguments...)
>
>
On Fri, Aug 13, 2004 at 09:19:29PM -0400, Uri Guttman wrote:
: i have no issue with splurt() being needed to disambiguate. i just
: wanted to see your take (this week :) on it as i felt the table was
: ambiguous so far. as far as making it a warning, wouldn't that make the
: warning space sensitive
On Fri, Aug 13, 2004 at 08:41:35PM -0400, Matt Diephouse wrote:
: > You know, at some point you just break down and write them positionally:
: >
: > @array.each( { $^odd.bar() }, { $^even.baz() });
:
: Speaking of which, let's talk a little bit about how I'd write these
: methods. After looki
> "LW" == Larry Wall <[EMAIL PROTECTED]> writes:
LW> On Fri, Aug 13, 2004 at 07:05:28PM -0400, Uri Guttman wrote:
LW> : LW> : splurt + 1 # same??
LW> : LW> : splurt +1 # work on +1??
LW> :
LW> : so how do the 2 above get parsed? the space between + and
On Fri, 13 Aug 2004 11:36:05 -0700, Larry Wall <[EMAIL PROTECTED]> wrote:
> Yes, that's precisely why I'm trying to generalize Ruby's single
> "magic" block into one or more ordinary parameters.
Excellent. :)
> Two anonymous adverbs? Hmm. While I can think of ways to force it to
> work, I'm inc
On Fri, Aug 13, 2004 at 07:05:28PM -0400, Uri Guttman wrote:
: LW> : splurt + 1 # same??
: LW> : splurt +1 # work on +1??
:
: so how do the 2 above get parsed? the space between + and 1 looks alike
: a 0-ary splurt but the +1 could be 0-ary added to 1 or unary with +1 as
> "LW" == Larry Wall <[EMAIL PROTECTED]> writes:
LW> On Tue, Aug 10, 2004 at 06:10:17PM -0400, Uri Guttman wrote:
LW> : can you have a 0- or 1-ary function? meaning like the many funcs that
LW> : work on $_ with no args or the single arg you pass in. how do you
LW> : declare it so it p
On Fri, Aug 13, 2004 at 02:21:30PM -0400, Matt Diephouse wrote:
: All this talk of blocks and Ruby (and A12 Lookahead Notions) brings up
: an important question in my mind: how will Perl 6 handle multiple
: blocks? When using Ruby, I found blocks both easy and pretty. But I
: found writing a method
On Fri, 13 Aug 2004 10:46:45 -0700, Larry Wall <[EMAIL PROTECTED]> wrote:
> This maps pretty well onto Ruby's magic blocks
> (and admittedly was inspired by it), though Perl will have different
> syntactic rules about how to pass one, of course, because we're
> generalizing the concept somewhat. I
On Fri, Aug 13, 2004 at 02:12:06PM +0100, mark sparshatt wrote:
: My main worry with this approach is how it would interact with slurpy
: args. I mean if method is defined as
:
: def method(*args)
: ...
: end
:
: how do I make sure that $clos doesn't become part of args?
In Perl 6 circles we've
On Tue, Aug 10, 2004 at 06:10:17PM -0400, Uri Guttman wrote:
: can you have a 0- or 1-ary function? meaning like the many funcs that
: work on $_ with no args or the single arg you pass in. how do you
: declare it so it parses correctly?
:
: splurt # should work on $_
: splurt
On Wed, Aug 11, 2004 at 03:25:20PM -0700, David Storrs wrote:
> On Sat, Aug 07, 2004 at 03:55:21PM +0100, Nicholas Clark wrote:
> > However, Acme::Intraweb hasn't been updated for a while, whereas CPANPLUS
> > has, so I'm not sure if it still works. Both are by Jos Boumans.
>
> Urrmmm...ok, I'm s
On Sat, Aug 07, 2004 at 03:55:21PM +0100, Nicholas Clark wrote:
> On Sat, Jul 24, 2004 at 02:50:18PM -0700, David Storrs wrote:
> > #!/usr/bin/perl6
>
> #!/usr/bin/perl
I stated perl6 explicitly to be, well, explicit.
> > #use warnings; # Note that I am NOT explicitly using these
> > #use s
Joe Gottman wrote:
There's something wrong with the mailing list archives at
http://dev.perl.org/perl6/lists/. I can get to this page OK, but when I
click on a link to the perl6-internals or perl6-language archives, I get a
"This page cannot be displayed" error.
The perl.org list server's been
There's something wrong with the mailing list archives at
http://dev.perl.org/perl6/lists/. I can get to this page OK, but when I
click on a link to the perl6-internals or perl6-language archives, I get a
"This page cannot be displayed" error.
Joe Gottman
> "LW" == Larry Wall <[EMAIL PROTECTED]> writes:
LW> 1c) Explicit parentheses may delimit the actual arguments,
LW> in which case the function is parsed as a function rather
LW> than a list operator. Adverbs may follow the parens:
LW> splurt(1,2,3):by{ +$_ } # okay
17 matches
Mail list logo