Another edge case: is it legal to have an optional Pair in the
signature? That is:
sub foo($x, Pair ?$y, +$z){...}
If yes, what does this parse as:
foo(10, z = 5);
If z = 5 is bound to $y, then $y is almost mandatory. ('almost' because
we can still say foo(10); ). (and then can we also
On Thu, Mar 03, 2005 at 10:25:30AM -0500, Abhijit Mahabal wrote:
: Another edge case: is it legal to have an optional Pair in the
: signature? That is:
: sub foo($x, Pair ?$y, +$z){...}
:
: If yes, what does this parse as:
: foo(10, z = 5);
It ends up equivalent to foo(10, y = (z =
Hi all,
I'm hacking on pugs. I've added a Config.hs which is generated from the
build system's perl's Config.pm. This allows me to expose the Perl6 magical
variable $?OS.
There are a lot of other config values that seem like they don't really need
their own global. Things like 'privlib' and
On Thu, Mar 03, 2005 at 09:30:03AM -0800, Brian Ingerson wrote:
: Hi all,
:
: I'm hacking on pugs. I've added a Config.hs which is generated from the
: build system's perl's Config.pm. This allows me to expose the Perl6 magical
: variable $?OS.
:
: There are a lot of other config values that
On Thu, Mar 03, 2005 at 11:25:04AM -0800, Larry Wall wrote:
: Well, hey, we've said that any object can behave as a hash of its
: public accessors, so it really don't matter which way they write it.
I guess another practical difference is that if you say
$*OSnonesuch
you get an undefined
On 03/03/05 11:25 -0800, Larry Wall wrote:
On Thu, Mar 03, 2005 at 09:30:03AM -0800, Brian Ingerson wrote:
: Hi all,
:
: I'm hacking on pugs. I've added a Config.hs which is generated from the
: build system's perl's Config.pm. This allows me to expose the Perl6 magical
: variable $?OS.
...
Michael G Schwern skribis 2005-03-03 16:21 (-0500):
I see this all the time. Phone numbers. Credit card numbers. Postal codes.
I mean, christ. $input =~ s/\D+//g;
Phone numbers: don't strip a prefixed +.
Postal codes: if it's international, don't strip anything. My postal
code is 3316 GG,
I hit the wrong macro key, causing the message to be sent to the wrong
mailing list. I'm very sorry; please ignore this thread.
On Thu, Mar 03, 2005 at 12:36:00PM -0800, Brian Ingerson wrote:
: At first I was overwhelmed by your reply, but it's soaking in... :)
Er, sorry. Sometimes I get so excited about the Promised Land that I
forget we're still standing ankle deep in dying tube worms somewhere
out in the middle of the
On Thu, Mar 03, 2005 at 04:09:26PM -0800, Larry Wall wrote:
On Thu, Mar 03, 2005 at 12:36:00PM -0800, Brian Ingerson wrote:
: Thanks for the mind expanding reply.
You're welcome. Next time don't eat blue sugar cubes from my frig. :-)
I know what you're thinking. 'Why, oh why, didn't I
10 matches
Mail list logo