Jonathan Lang writes:
Larry Wall wrote:
So far we've only allowed is parsed on the macro itself, not on
individual arguments. Still, that's an interesting idea.
Forgive me if this has already been addressed, but this could have some
useful applications:
So far, everything I've read
Larry Wall writes:
And nested modifiers are still quite illegal in Standard Perl 6.
Right.
Anybody else get the feeling we should write that down somewhere, so we
don't have to have this conversation again in a few months?
Smylers
Piers Cawley writes:
Stéphane Payrard [EMAIL PROTECTED] writes:
s/// in string context should return the string after substituion.
Surely it should return the string after substitution, but with an
appropriate 'but true' or 'but false' property depending on whether
anything was
Larry Wall writes:
On Wed, Nov 19, 2003 at 08:08:49AM +1100, Damian Conway wrote:
: Michael Lazzaro wrote:
:
: return if $a { $a }
:
: Means:
:
:if ($a) { return $a } else { return undef }
No, it's a syntax error. You must write
return do { if $a { $a } }
to
On Wed, Nov 19, 2003 at 12:49:21PM -0800, Larry Wall wrote:
Sorry, I wasn't being very clear. It wouldn't be logically attached to
the outside of the for, but to the inside of the confer, or whatever:
@foo = gather {
for @a - $x { pick $x if mumble($x) }
DEFAULT { @results
On Wed, Nov 19, 2003 at 08:23:30PM +, Smylers wrote:
This, however, is irritating:
my @new = map { s:e/$pattern/$replacement/; $_ } @old;
I forget the C; $_ far more often than I like to admit and end up with
an array of integers instead of modified strings.
That one gets me every
Smylers [EMAIL PROTECTED] writes:
Larry Wall writes:
And nested modifiers are still quite illegal in Standard Perl 6.
Right.
Anybody else get the feeling we should write that down somewhere, so we
don't have to have this conversation again in a few months?
It'll be in the summary.
On Tuesday, November 18, 2003, at 12:15 PM, Luke Palmer wrote:
Oh, and if you really want to do that return thing without using a
Cgiven, you can just:
sub blah {
return $a || goto CONT;
CONT:
...
}
I don't see what's wrong with that. :-p
Umm... refresh my/our memory.
Larry Wall [EMAIL PROTECTED] wrote:
Also, since multi is orthogonal to naming ...
So I'm wondering what the correct syntax is to grab a reference to a group
of multi-somethings. Example:
multi sub foo(Int $a:) {...};
multi sub foo(String $a:) {...};
my $ref = multi foo;
$ref(hello); # calls
On Thu, 20 Nov 2003, Dave Whipp wrote:
Larry Wall [EMAIL PROTECTED] wrote:
Also, since multi is orthogonal to naming ...
So I'm wondering what the correct syntax is to grab a reference to a group
of multi-somethings.
While Larry will probably weigh in on this, I'd rather you not actually
Smylers writes:
Piers Cawley writes:
Stphane Payrard [EMAIL PROTECTED] writes:
s/// in string context should return the string after substituion.
Surely it should return the string after substitution, but with an
appropriate 'but true' or 'but false' property depending on
Jonathan Scott Duff writes:
On Wed, Nov 19, 2003 at 12:49:21PM -0800, Larry Wall wrote:
Sorry, I wasn't being very clear. It wouldn't be logically attached to
the outside of the for, but to the inside of the confer, or whatever:
@foo = gather {
for @a - $x { pick $x if
12 matches
Mail list logo