and then
dequeues and invokes another thread's continuation. But that's not what
you're asking at all.)
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
needs said ambiguity removed.
* Allows us to reuse constructs (e.g. slicing).
* Opens up a few previously-difficult constructs (like getting the
ord() of an arbitrary character).
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
t would still
require a "use" statement to get at, and people often wouldn't design
their modules to use it the way they do for Int, Num and String.
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
{
next METHOD;
}
}
}
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
not as happy as you think:
my $foo = '0';
my String $bar = '0';
if $foo { say 'foo true' }
if $bar { say 'bar true' }
Would print 'bar true', but not 'foo true'. (In other words, variables
of type Any keep the Perl 5 behav
to `$new'" if $verbose;
...
}
The colon is just a different syntax for a pair constructor; "say" is
what many languages call "printline".
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
use integer; #Perl 5
my int ($t); #Perl 6
$t = time - $when_it_happen;
$sec=$t%60; $t=int($t/60);
$min=$t%60; $t=int($t/60);
$hours=$t%24; $t=int($t/24);
$days=$t;
return time_elapsed($days,$hours,$min,$sec)
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl a
w, MyObj $src) {...}
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
then use $foo.s/// to get the new string ang $foo.=s/// to mutate
$foo.
Working from the other direction, parens are not valid pattern
delimiters, leaving s() open for use:
print s(/:g \w+/, 'WORD');
(Or somesuch...dunno about the positioning of :g.)
--
Brent "Dax" Royal
alidate any named parameters they add in later versions.
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
oes a handles <>; does b handles <>; }
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
legs, or %.legs
Which actually brings up an interesting question:
class Silly {
has $.thing=1;
has @.thing=(2, 3);
has %.thing=(4 => 5, 6 => 7);
}
my $silly=new Silly();
say $silly.thing.class;#Int, Array, or Hash?
--
Brent "Dax" Royal-
that's neither here nor there...
[1] I'm certain there's a more efficient way to do this test, probably
involving bit twiddling. Whatever.
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
ad Larry's designing this
language. Well done!
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
Jonathan Scott Duff wrote:
On Fri, Apr 16, 2004 at 10:44:47AM -0700, Brent 'Dax' Royal-Gordon wrote:
Regex aliases, threads, lexicals, junctions, and dwimmery make things a
*lot* easier to program. This syntactic sugar you're proposing doesn't.
But it *does* make an oft-u
Juerd wrote:
Brent 'Dax' Royal-Gordon skribis 2004-04-16 0:25 (-0700):
I don't like %hash{'foo'} because it's ugly. I don't like %hash<>
because it's ugly and adds syntax. I don't like %hash`foo because it's
ugly, adds syntax, and looks
Mark J. Reed wrote:
Nope. I'd be perfectly happy if the modulus operator were spelled "mod"
instead of %, which has never struck me as particularly intuitive.
I always saw it as being a funny division sign. See the little slash in
there?
--
Brent "Dax" Royal-Gordon
Juerd wrote:
Brent 'Dax' Royal-Gordon skribis 2004-04-15 16:56 (-0700):
1. Allow %hash<> to be typed as %hash. There would be a
conflict with numeric less-than, but we can disambiguate with
whitespace if necessary. After all, we took the same solution with
curlies.
Curlie
s for removing the term ``, I see no compelling argument to do so.
Perl has never been, and should never be, the sort of nanny language
that makes fundamental operations less accessible just because they're
security risks. Heck, we gave our users the 'x' operator, arguably the
easies
on, I think this closes both the Perl and
# the Python block...
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
i. If exactly one of the parses died on an error that
disambiguates between the Perls (e.g. a package statement, a
'use 6'), emit the other's error message.
ii. Otherwise, emit an ambiguity warning and both error messages.
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
o implement.
On the other hand, the current behavior may be somewhat entrenched, and
might break our promise to assume that code is Perl 5 until we see a
different indication. As an alternative, perhaps the -H command-line
switch could be used to use a "hello world" program.
--
Brent &qu
Larry Wall wrote:
say @bar.elems; # prints 1
C? Not C?
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
into list context.
Which shouldn't affect anything. So I think it's probably a mistake.
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
le dozen offshoots of that class, actually,
which is really rather scary. Definitely been chatting with too many
anime fans...)
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
and* puts
the less important bit on the LHS.
Bah. Just use 'wa' and make the world learn Japanese. :^P
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
Damian Conway wrote:
/ $foo:=(abc) $bar:=(def) /
Am I misreading, or are you suggesting that $foo may contain 'abc' after
running this example, even if the match wasn't successful?
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Ocea
rhs => Perl::method_call.new(
term => $lhs,
method => $rhs,
)
);
}
TMTOWTDI, I suppose...
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
#x27;t special
by itself.
Would that need to be a double backslash in a double-quoted string, or
is there some new Perl 6 magic that keep it from being needed?
--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
ost assumes that import isn't going away entirely.
--Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker
Oceania has always been at war with Eastasia.
101 - 130 of 130 matches
Mail list logo