,
Juerd Waalboer ju...@tnx.nl
TNX
salutojn,
Juerd Waalboer: Perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
Convolution: ICT solutions and consultancy [EMAIL PROTECTED]
My suggestion:
consequential blocks
--
Met vriendelijke groet, Kind regards, Korajn salutojn,
Juerd Waalboer: Perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
Convolution: ICT solutions and consultancy [EMAIL PROTECTED]
,
Juerd Waalboer: Perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
Convolution: ICT solutions and consultancy [EMAIL PROTECTED]
.
Amen.
--
Met vriendelijke groet, Kind regards, Korajn salutojn,
Juerd Waalboer: Perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
Convolution: ICT solutions and consultancy [EMAIL PROTECTED]
,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
this by default, because it would make it
easier for vendors to choose to use Perl in their base system. It would
also make Perl a more attractive choice for embedded systems.
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions
salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
as *external* documentation. That's nice.
Semantics are very useful in documentation, why throw them away?
Why not have both? With normal POD as suggested by Damian, you could
still generate it from something else. A few macros could help ignore
the inline documentation.
--
korajn salutojn,
juerd
Zev Benjamin skribis 2007-06-11 0:57 (-0400):
?? and !! could always return some kind of result object that boolizes
to true or false.
Can we *please* keep simple things simple?
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict
couldn't find how to loop over multidimensionally shaped arrays; maybe
you can and maybe someone can show an example.
...Are you sure you were asking about Perl 6?
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy
Dictionaries are usually alphabetically ordered. Hashes are not.
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
or Japanese.
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
, it would suddenly look a lot \
different. Did you, while reading this, pause, just before different?
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
and bar flatten
my @quux = ($foo, $bar); # These arrays foo and bar do not
That's a subtle yet very useful distinction.
But this is just very handy, not important.
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions
think alternating between the two is
close to a perfect balance comma whereas in human languages once, every
$few (words) is.probablybetter; period
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL
Thomas Wittek skribis 2007-05-15 1:52 (+0200):
Would it be a good idea to call methods on objects, that never thought
of this methods?
Absolutely! Roles can be used for that too.
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict
be nice if it were configurable.
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
[EMAIL PROTECTED] skribis 2007-03-28 13:17 (-0700):
+block) early using the Cbreak verb. More precidely, it leaves the
precisely?
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
Ik
Just a short note: please, if this is implemented, make sure that either
Perl 6 conforms to Perl 5 behaviour, or the other way around.
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED
Juerd Waalboer skribis 2007-03-09 21:27 (+0100):
Just a short note: please, if this is implemented, make sure that either
Perl 6 conforms to Perl 5 behaviour, or the other way around.
Wanted to CC this list, but by accident replaced the To instead. Now
CC'ing p5p.
--
korajn salutojn,
juerd
,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
Ik vertrouw stemcomputers niet.
Zie http://www.wijvertrouwenstemcomputersniet.nl/.
Thomas Wittek skribis 2007-03-03 23:17 (+0100):
Larry Wall:
: if ($item = 'foobar') {
== of course ;)
Or how about eq? :)
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
Ik
Yuval Kogman skribis 2006-11-22 16:01 (+0200):
my $x ::= 3;
sub foo { say ++$x };
Why would you be allowed to ++ this $x? It's bound to an rvalue!
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict
) {
$CALLER::_ = $lhs;
}
42?;
say($_); # prints 42!
# This code is not futuristic. It already works with Pugs.
But you wanted a statement thingy. That would require that you modify
the Perl 6 grammar. Yes, you can do that with Perl 6.
--
korajn salutojn,
juerd waalboer: perl hacker
for certain LHS types.
I don't like special syntax that looks like normal syntax.
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
Ik vertrouw stemcomputers niet.
Zie http
propose that using :bytes on a text string throws an exception.
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
Ik vertrouw stemcomputers niet.
Zie http
[ 42, 15 ] »+ 1 # 2
[ 42, 15 ] »»+ 1 # [ 43, 16 ]
The ASCII variant is a bit big, but that's okay huffmanwise, IMO.
Recursion can be a pretty big operation anyway. Being explicit about
that is good.
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl
,# go
red = #FF, # here
);
but with much less punctuation and finger strain.
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
Ik vertrouw stemcomputers niet.
Zie http
the same there. Partly for future-proofness,
partly for least surprise.
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
Ik vertrouw stemcomputers niet.
Zie http
is
specifically disallowed
Oh. For some reason, I thought this exception was for loops only.
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
, and 1 is always true. So you could just write:
say 1;
Which seems like a great improvement.
It may be more useful to discuss this issue using less contrived
examples. :)
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict
]), then
what do we call what
the \ is doing there, now that references are supposed to be a
behind-the-scenes automagical thing?
They're captures.
I personally wouldn't mind unary $, to supplement unary @ and %.
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
' would filter out the ones that pass
it.
There's a neat trick for this: .grep:{ not ... }
HTH :)
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
the -X filetest
operators between at least audreyt, Juerd, myself and markstos. The
problem with these operators was that they conflicted in some cases with
the parsing of unary -, such as:
foo(-?? * 2 * $r);
or just:
sub x($n) { $n*2 }
foo(-x $number);
The problem
generating method
names by interpolation without needing a temp variable.)
First impressions:
Ugly, hard to type, not a solution for -e, weird syntax.
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL
character, but it
costs a lot of grokability.
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL PROTECTED]
, just like implicit declaration. If
we do this, we get only typo checking, and none of the other nice
protection that lexical declaration gives us.
--
korajn salutojn,
juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig
convolution: ict solutions and consultancy [EMAIL
in expressions, you wouldn't use
the parenless form of the method call much.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
=~ was a binding operator, and s/// fit right in. But Perl 6's ~~ is
a matching operator, and in my opinion should remain pure, and so: not
mutate.
I'm even a bit inclined to suggest that .m// should return matches,
while ~~m// should return a bool. But ignore that for now :)
Juerd
--
http
the problem.
It is indeed a modifier on the *match*, or the *substitution*. Just not
on the *regex*. What you pass to a .subst method is a regex, not a
match. The difference is that matches and substitutions are actions,
while a regex is an object, i.e. data.
Juerd
--
http://convolution.nl
stuff like
:2nd and :3th. And if we're parsing anyway, you might as well pass in a
string. Indeed, :g would only be syntactic sugar.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
, regardless what its RHS
is.
Agreed, and that's why $foo but s/// would be a reasonable replacement
for what's currently still $foo.subst(//, ''). subst doesn't mutate.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl
Damian Conway skribis 2006-08-31 9:08 (+1000):
return want.rw ?? $lvalue
:: want.count == 2 ?? (7,11)
:: want.item ?? 42
:: want.list ?? 1..10
::die Bad context;
s:g/::/!!/ # :)
Juerd
--
http://convolution.nl
don't
think substitution belongs in a smart match op.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
(/foo/, bar)
$foo.s(/foo/, bar)
$foo.s/foo/bar/
Hm. I don't know how but works exactly, but in the realm of syntactic
sugar, this is appealing:
$foo but s/foo/bar/
(Note that while but is long, it's extremely easy to type.)
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http
|
I'm curious what this was supposed to look like. :)
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
the value of an element at an index
You define in terms of functionality, but don't provide an explanation
for the chosen point of view.
One could say that constant arrays protect against modifications, which
normal arrays don't. Hence, constant arrays do *more*.
Juerd
--
http://convolution.nl
?! Please, no.
Though in practice I expect is ro to be used, not a subtype or subset.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
Trey Harris skribis 2006-08-25 13:26 (-0700):
Explain to me how nontraditional DBC might work in an internally
consistent way. Otherwise, this is hand-waving. :-)
Perl *is* hand-waving.
Mark J. Reed skribis 2006-08-23 17:43 (-0400):
But is there an easy way in Perl6 to do it all in one go? Should this work?
my %h = @k [=] @v;
Hyper is not [], but . And = works perfectly in Pugs, and does
exactly what you describe.
[] is for reduction, and is prefix: [+] 1,2,3
Juerd
:
On 8/6/06, Yuval Kogman [EMAIL PROTECTED] wrote:
Please do not answer above the quote.
Regards,
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
I haven't actually read your message, just the Subject, because I was
just going to bed.
Be sure to check out http://pugs.kwiki.org/?Perl6Nomenclature
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
serializing to a serial format, like disk. Locked is
the best name I can think of, and it frankly isn't that good -- it's so
vauge as to be able to mean almost anything.
is exclusive
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http
Please, for proper threading, don't reply to multiple messages at once.
Conrad Schneiker skribis 2006-05-25 1:46 (-0700):
Juerd wrote:
Feather, the semi-public, semi-private, Perl 6 development server, is
available to host a Perl 6 wiki.
The hostname www.perl6.nl is deliberately kept
is possible, but there will
be people who will interpret that meta-info.
Besides that, the page is kind of slow... But that could be temporary.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
named methods and rules may be a wise idea
(I'm not sure they are), the anonymous forms are probably very useful to
have around.
my $method = method { ... };
$object.$method(...);
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http
scans in Perl 6.
To make sure I understand what you mean, not as a proposed
implementation:
my @input = (...);
my @scan = map { [op] @input[0..$_] } [EMAIL PROTECTED];
Is this what you mean?
Hm, could that be written as:
my @scan = [op] @input[ 0 .. ([EMAIL PROTECTED]) ]
Juerd
Gaal Yahas skribis 2006-05-08 17:58 (+0300):
(Is there special sugar to make @input be the last index when used in a
range, or did you mean ..^ ?)
I meant @input.last, or probably @input.indices (or .keys?) instead of
the entire range, and @input.first instead of the first 0.
Juerd
--
http
Dr.Ruud skribis 2006-05-05 15:25 (+0200):
s/pattern/{ eval doit() }/
s/eval/try/ ?
No, string eval stays eval. Only block eval is renamed to try.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
Markus Laire skribis 2006-05-04 14:55 (+0300):
When reading Synopses, I sometimes notice some mistakes or typos,
which I'd like to submit a patch for, but it's not easy to do so as I
don't know where to get the source.
Have you tried s/html/pod/? :)
Juerd
--
http://convolution.nl
on the outside, this will do Perl 6 much
good.
I've been meaning to do this myself, but I'm past the point where I give
up waiting for sufficient sufficiently round tuits.
Of course, feather can host it :)
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl
something that's common in
a certain programming language, that programming language was badly
designed. Let's not let Perl 6 be such a language.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
think healthy
discussion can lead to a much better solution than the current long dot.
People who think it wastes their time, by now know what this thread is
about, and can choose to ignore it.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http
.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
Yuval Kogman skribis 2006-04-30 2:58 (+0300):
We need to be careful not to require the language to solve problems that
are better solved with tools.
On that point I agree, but I think it was a question of
aesthetics... Juerd?
Yes, it was about both aesthetics and the extra work
for my needs. Not sure if people are willing to give up
their underscore-only method names, though.
Perhaps whitespace can be allowed in numbers too:
5 000 000;
5_000_000;
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl
.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
Gaal Yahas skribis 2006-04-30 16:05 (+0300):
But it doesn't work across lines:
$and_a_long_one_I_still_want_to_align.
:foo()
Explain to me why it wouldn't work, please. I don't get it.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl
16:50 audreyt Juerd: write to p6l and explain the .. conflict,
The current long dot consists of a dot, then whitespace, and then
another dot. The whitespace is mandatory, which makes the construct at
least three characters long. Tripling the length of an operator, just to
make it alignable
)
To: [EMAIL PROTECTED]
Subject: Re: A shorter long dot
Testing with sbc30k
[EMAIL PROTECTED] wrote:
16:50 audreyt Juerd: write to p6l and explain the .. conflict,
The current long dot consists of a dot, then whitespace, and then
another dot. The whitespace is mandatory, which makes the construct
:
$hex_wep_key ~~ /^ hexdigit**{10|26} $/
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
lines]
I wish I had time to read it all.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
it breaks almost everyone's syntax style, not
just that of a few.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
predictible.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
you
intended the module to be used, it doesn't cover all the bases. See
DBIx::XHTML_Table and Apache::Session, that have nothing to do with DBI
and Apache, respectively.
More and more, I like cute names that don't really describe the module.
We have abstracts for the latter.
Juerd
--
http
has $.a;
has @.a;
To result in both $.a and @.a, but only one method .a, which is an
accessor for @.a
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
Luke Palmer skribis 2006-02-13 9:46 (+):
class Baz {
does Foo;
does Bar; # does this count as double declaration?
}
I'd put composition and inheritance in a slightly different category
than accessor *generators*.
Juerd
--
http://convolution.nl
.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
in there
for me, or anyone except Cafepress. (I did add $ 0.01 because I think
.99 values are incredibly silly.) Please donate to TPF separately :)
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
loud in our perl poetr^H^H^H^H^Hmusic. :-)
We need pp and ppp for balance.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
someone will suggest the ff ligature.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
a').
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
.
Classes, like OO syntax, are not necessary for OO.
You can write code that behaves like you're in OO-land and that talks
with an OO accent (so long as you don't look behind the curtain), but
it's not OO.
Your definition of OO is far too specific for a 2-letter acronym.
Juerd
--
http
-use code more easily.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
is blessed is not a literal hash, but an instance of ^Hash.
The mistake here is that Foo doesn't does Hash, I think.
Sure, in Perl 5, you could have different kinds of references as
instances of the same class. But I don't recall ever having encountered
that.
Juerd
--
http://convolution.nl
wrong for Perl6.
I think it's needed to be able to convert Perl 5 code
semi-automatically.
But you have probably thought about this more than I, so I'll ask you:
what's the alternative?
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http
Juerd skribis 2006-01-19 22:18 (+0100):
Could you live with @foo being an array, and @foo in scalar context
returning a reference to that array? And with arrays being interfaces to
underlying Arrays, which are objects, which makes arrays non-objects
that can be used *as* objects?
This turns
of the same class. But I don't recall ever having
encountered
that.
bless([] = 'Foo');
bless({} = 'Foo');
bless(\*Foo = 'Foo');
bless(\(my $var) = 'Foo');
Okay, now I did encounter it...
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http
to
reflect this.
I was more thinking along the lines of NOT everything is an object,
but some things are.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
, noting the accesses into
the Perl5 reference that you used and calling those attributes.
3) It then creates your BUILD() method, putting all the non-bless
components of your new() into it.
Doesn't solve the problems as mentioned in this thread, like overlapping
methods.
Juerd
--
http
it that)
did not. The two are wildly incompatible, but we do want both. Well,
perhaps you do not, but many of us here do.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
Jonathan Lang skribis 2006-01-18 7:26 (-0800):
Mark Reed wrote:
Perl6 .split(/whatever/) is equivalent to split(/whatever/,) in Perl5.
I'm hoping that the perl 5 syntax will still be valid in perl 6.
Don't worry, it is.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http
... and ...$foo? MMD, longest-match, ugly hacks,
there's a bag full of tricks that could be used, so I gathered there
must be a philosophical reason not to have this. I just can't think of
any that would weigh more than having ...$foo around.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http
, and the aliasing itself had nothing to do with the
substitution.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
Ingo Blechschmidt skribis 2006-01-05 18:32 (+0100):
Juerd wrote:
Ingo Blechschmidt skribis 2005-12-25 17:37 (+0100):
I disagree about binding only being a language thing:
I fail to see how your example code illustrates your disagreement.
return 42
if (my $short
, that for a referenced hash defaults to the
opposite of what it defaults to for a literal anonymous hash.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
probably be done with
any($range.min, $range.max) == $boundary.
I'd assume $foo $range to compare $foo to the number of elements in
the range, OR $foo $range to mean $foo $range.min, and $foo $range
to mean $foo $range.max, and would be surprised if they meant anything
else.
Juerd
--
http
1 - 100 of 653 matches
Mail list logo