ve it for reduce.
OTOH, reduce probably just needs to be smart enough to understand
postcircumfix. Perhaps whitespace helps, [{ }], in parallel with
&postcircumfix:<{ }>, to avoid a conflict with an infix {}.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convoluti
e tokens with spaces in the middle.
Neither do I...
> Actually, I think Damian's original formulation is sufficiently clear.
Why is "{}" clear enough for [op], but not when declaring a
postcircumfix operator?
How does [EMAIL PROTECTED] know the difference between &pos
. would likely need a 7-bit option as well)
Not on any of the keyboards that I regularly use, and the
ascii-equivalent would be \w, which has the problems described above.
> ..
Very possible, but lacks mnemonic, while it does look like it has to do
with some mnemonic, because a character is repe
uot; or "8-bit" ASCII. ASCII is 7 bits by definition
and has 128 characters. The character set you're using is called
iso-8859-1, also known as latin-1.
I don't buy the "encouragement to get better editors" thing. Using
digraphs in the editor is extremely poor hu
gt; always needs an LHS.
Or was your choice of words poor, and did you not mean to discuss the
dot's *default*, but instead a standard way to write the current
invocant?
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
ires that "?", "*",
"+" and "=" be thought of as meta-operators to ".", and from now on, to
"./" and "../" as well, so you get "./+method". This isn't as complex as
it looks right now.)
Your opinions please! (I ask thos
Autrijus Tang skribis 2005-05-15 19:28 (+0800):
> On Sun, May 15, 2005 at 01:19:53PM +0200, Juerd wrote:
> > Or was your choice of words poor, and did you not mean to discuss the
> > dot's *default*, but instead a standard way to write the current
> > invocant?
> I thi
don't think an alias for $?SELF is needed, because the only thing you
usually do with it, is call to call a method. In the rare occasion that
you want to pass it around, $?SELF or explicitly signatured $self
suffices (and is the clearest way to write it IMO).
You didn't say what you think a
od { }" "meth { }", as "subroutine" is
shortened to "sub". Or maybe I'm just going crazy now.).
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
t.
If we have .method and .:method, then we should have $.attr and $.:attr.
Not $:attr.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
il.)
Note that it's not *implicit* $?SELF. "./" is a prefix operator that
calls a method on $?SELF, not an infix operator that when prefixly used
defaults to something. "./" is not like ".+" and friends. It cannot be
used infix, it does not default to anything. Rea
Brad Bowman skribis 2005-05-16 9:56 (+1000):
> Would it conflict with range + pattern? Or has that changed anyway?
No, "./" and "../" are prefix only, so they cannot clash with an infix
operator like "..".
Juerd
--
http://convolution.nl/maak_juer
d private methods, and my not liking
much of the way they work, is pushing me towards good old _private
instead, ignoring the whole wildly special cased colon method thingies.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
Aaron Sherman skribis 2005-05-16 5:54 (-0400):
> On Sun, 2005-05-15 at 19:18 +0200, Juerd wrote:
> > Now:
> > Declaration ExplicitImplicit $_ $?SELF
> > has $.var | $obj.var \ .var \ ./var \
> > has $:var | $obj.:var \
se there's an implicit "." there. This is like saying that an
array is an array element, but only if you use square brackets.
(This illustrates my feeling about @foo[] being the same as @foo. It
feels inconsistent with &foo() not being &foo.)
Juerd
--
http://convolution.nl/
son to not
call it that, we also need new names for slurp() and slurpy parameters.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
"TSa (Thomas Sandlaß)" skribis 2005-05-18 21:54 (+0200):
> Juerd wrote:
> >>my @b = [1,2,[3,4]];
> >>is([EMAIL PROTECTED], 1, 'Array length, nested [], outer []s');
> Isn't that a bit inconvenient? To get e.g. 2 out of @b
> one has to
Which leads to lots of |sort|uniq, or just sort -u.
Are there many practical uses for removing successive duplicates?
I personally have never used tr///'s capability of removing successively
duplicate characters, except in golf.
Juerd
--
http://convolution.nl/maak_juerd_bli
s.
> Is $a[1] == 'two'?
Yes. Do note that this is really @$a[1] or $a.[1].
> this is the Perl6 language list, not a Perl5 beginners list.
Thank you for this reassurance.
> And I see a lot of things changed from Perl5 to Perl6, including
> referential semantics.
They haven
Ingo Blechschmidt skribis 2005-05-19 22:45 (+0200):
> class Foo {
> method bar() { 42 }
> method baz() { &bar }
> }
> my $ref = Foo.baz;
My guess:
Foo.$ref
$object.$ref
Just like in Perl 5.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
ht
rt hostname with less than 9 letters.
I have sent this message to perl6-language and perl6-compiler. Please CC
replies back to me if you read it on p6c, because I'm not subscribed to
that list.
Regards,
Juerd
P.S. No guarantees of any kind are made. If I turn BOFHish one day, you
may
will you take the task of managing these decisions?
> dev.pugscode.org seems indicated ...
Sorry, but 'dev' isn't cute enough :). And it's going to be
something.perl6.nl, probably. I don't mind aliases, though, but they
better be CNAMEs.
Juerd
--
http://convolu
omain already exists, but if you want to register additional
domains, go right ahead. Ask me for DNS information later.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
Stevan Little skribis 2005-05-23 12:00 (-0400):
> I would like an account too, username 'stevan' please.
Will be arranged.
> lambdacamels.perl6.nl?
I like it, but singular (as it identifies the machine itself, not its
users).
Juerd
--
http://convolution.nl/maak_juer
f someone arranges
this to happen), but every uses should have their own working copy,
because otherwise versioning systems don't work too well: you would be
committing someone else's changes, for which you don't know a good log
entry, and the logs no longer show the correct user
Nathan Gray skribis 2005-05-23 12:50 (-0400):
> > >Sorry, but 'dev' isn't cute enough :). And it's going to be
> > >something.perl6.nl, probably. I don't mind aliases, though, but they
> > >better be CNAMEs.
> Juerd, why am I getting everyone
Thomas Klausner skribis 2005-05-23 18:03 (+0200):
> onion
Sorry, I had previously overlooked this lone paragraph.
I like "onion" the best so far.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
an onion has many layers that together make a single whole that
adds taste to almost any meal, which I think is a nice view of Perl 6.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
n't have a last|family name, get one ;)
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
important Perl server:
onion.perl.org.
I'm currently considering 'ui', which is Dutch for 'onion'. I bet almost
nobody here knows how to pronounce ui ;)
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
ched as it is) is more
> accurate of Pugs nowadays.
Or the other nice words for onion. It's weird that the word for onion is
funny in every language, even though they words are radically different!
I like sipuli and zwiebel, just because they're the funniest.
But I like the newly
+%b
No.
> %a == 1 == %b
No, there is no %b{'a'}, only a $b{ $a_certain_hashref }.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
on't have an arrayref, because () only groups.
> are the &infix:<,> inside
I recall having read something about , being "listfix", not infix. The
same would be true for Y and | and & and ^.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
y the same.
Because @a[0] is a reference to an array, that array is @{ @a[0] }. [EMAIL
PROTECTED]
@a[0] } is also the same as [EMAIL PROTECTED]
The numeric value of an array reference is the same as that of its
array.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/m
n array of size 3 in Perl6?
> @a = 1,2,3;
You could, if you changed the precedence of , to be tighter than =.
However, by default, = has higher precedence than ,, so that you need
parens to override this decision: @a = (1,2,3);
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolu
really shouldn't ever want to do this.
> If I understand Juerd correctly, the logical extension would be to have
>@m = 5;
> be the same as:
>@m = list(5);
The RHS of an array assignment is in list context. "list" is an operator
that does nothing more than
"TSa (Thomas Sandlaß)" skribis 2005-05-27 16:22 (+0200):
> This argumentation breaks down as soon as you regard &infix:{'='} as
> an operator like many others.
Which we don't, making this discussion much easier for everyone.
Juerd
--
http://convo
celess
version, and always be objects and thus references.
Then we lose the point for having different sigils, and everything gets
a dollar sign.
The end result is very different from Perl, and can no longer be thought
of even as derrived from Perl, in my opinion.
Juerd
--
http://
e what we now
write as $foo = \$bar, and $foo = := $bar to be the same as $foo :=
$bar, and stacked :=s to be irrelevant... But let's not think about this
too much...)
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
Juerd skribis 2005-05-28 1:15 (+0200):
> There are named arrays, @foo, and anonymous arrays, [].
>
> There are named hashes, %foo, and anonymous hashes, {}.
>
> There are only anonymous pairs. You can't dereference a pair, or bind a
> name to it.
I forgot an importan
= \$var;
> $$ref = 12; # should $ref suffice?
No, if you would use $ref, $ref itself would be 12, but $var not,
because the 12 would overwrite the reference in $ref.
> say $var; # prints 12
> $ref = 17; # detaches?
Yes.
> say $var; # still prints 12
Yes.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
"TSa (Thomas Sandlaß)" skribis 2005-05-30 8:58 (+0200):
> [This is a repost, somehow it didn't get through before, sorry.]
This is the fourth time it did get through to my mailbox, at least.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juer
ing 0 fail
too?
I dislike this, and would prefer [op] with no elements to simply return
whatever () returns: an empty list in list context, undef in scalar
context.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
Paul Seamons skribis 2005-06-02 9:43 (-0600):
> localtime() and gmtime() seem fairly core to me. The array contexts are
> simple, and the scalar context is an RFC valid string. Nothing too heavy
s/array context/list context/
Juerd
--
http://convolution.nl/maak_juerd_blij.htm
like any form of referencing of scalars.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
"TSa (Thomas Sandlaß)" skribis 2005-06-02 21:30 (+0200):
> And it nicely lines up with $y[], $y{}, @a[], %h{} etc. as
> dereferential expressions.
Except that () doesn't return a reference to an anonymous scalar of the
list it surrounds.
Juerd
--
http://convolution.nl/maak
ot; and "multi method" to simply become
"multi".
This leaves submethods, and perhaps they just need a third character,
that joins . and :. I have no idea what character would be useful, but
assuming >, it would also give $>foo, which would be to attributes what
submethod
Adam Kennedy skribis 2005-06-08 15:57 (+1000):
> The number of events I'm talking about would be extremely low, pre and
> post fork being one.
I think they're much more useful being two.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_
s),
do so.
Otherwise, just report the bug (commit a test script) with Pugs and
it'll find the right party eventually (of course with some help of the
people coding Pugs).
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
David Formosa (aka ? the Platypus) skribis 2005-06-10 9:32 (-):
>
Interesting. Could you provide some more information, like perhaps a
message body?
I personally don't think string eval should be made too easy|simple. We
don't want to end up with people thinking we upgraded
#x27; as well.
You suggested cat as a join assuming '' in an old thread. I still like
that idea.
[ 'a' .. 'e' ].join # "a b c d e"
[ 'a' .. 'e' ].cat# "abcde"
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
e makes the symmetry less false, and
would --if ' ' is the default-- make the case even stronger for join to
default to ' ' too.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
number of
defaults, the more predictible the language is.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
> say join ",", @words; # "hi,my,name,is,ingo";
Following the logic that .words returns the words, the words are no
longer individual words when joined on comma instead of whitespace...
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
od - they're one word, together, when they're joined on comma.
It was a demonstration of why "words" for this feature is a bad name,
not anything against the presentation using commas.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
# same as
say "foo bar baz".match
> say "foo bar baz".words(rx/\w+/).join(":");# "foo:bar:baz"
say "foo bar baz".match(/\w+/)
rx is optional, as bare // does rx// in Rule context, not m//.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
t;:method()
I think > has just enough purposes, and that it should be left alone
now.
>gt
=> pair
==> pipe
<> qw
<<>> qw
+>, ~> shift
->, <-> sub
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
nspired it and a metaphor
between cwd and $?SELF plays for mnemonic.
The divisioniness is something you'll just have to get over. Do you see
any division in /\w+/? Or any addition in $foo +| $bar? Or any
comparison in =>, +>, or <>? Or any price in $var? Or any percentage in
%hash
John Siracusa skribis 2005-06-18 20:16 (-0400):
> On 6/18/05 7:54 PM, Juerd wrote:
> > In Perl, @ has a VERY strong association with arrays, so except for
> > specialised frameworks, I recommend against using it for other purposes.
> The / character has very strong associatio
John Siracusa skribis 2005-06-18 20:35 (-0400):
> On 6/18/05 8:28 PM, Juerd wrote:
> > The unix shell and things resembling it will still be in use much fifteen
> > years after today, Perl 5 will not.
> Ooo, a bold prediction :)
Do you really think so? I think that there is no w
ng there's an alternative that everyone will like better
As long as I'm part of "everyone", that won't happen. I've listed
numerous possibilities for myself, and found none that I liked better
than ./method. I don't think you can come up with a pretty and
easy-to-ty
it's different from all other method syntax anyway,
because it does not have any left hand side -- not even implied.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
ilure
}
If you want to load it again each time, remove the := line.
The line can be shortened to
sub AUTOLOAD ($w) { return our &::($w) = get_subref_for $w }
or just
sub AUTOLOAD { our &::($^a) = get_subref_for $^a }
Re arguments: I think a single positional argumen
Juerd skribis 2005-06-20 12:11 (+0200):
> sub AUTOLOAD ($w) { return our &::($w) = get_subref_for $w }
> sub AUTOLOAD { our &::($^a) = get_subref_for $^a }
That's :=, of course.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_jue
BÁRTHÁZI András skribis 2005-06-20 17:18 (+0200):
> Is there a way, to catch, if I call a method, that doesn't exists, to
> run a default one? I'm thinking about an "error handler" method.
See all the AUTO subs.
Juerd
--
http://convolution.nl/maak_juerd_blij.
BÁRTHÁZI András skribis 2005-06-20 17:34 (+0200):
> Cool! Where? Is it working currently with Pugs?
S10. I don't know how much of that is supported by Pugs.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convol
supposedly) newly loaded sub.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
OMETHOD. I personally like the "meth foo { ... }".
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
Kurt skribis 2005-06-20 19:34 (-0400):
> However, if it remains official, I expect I'll simply be naming my
> invocants, as chromatic has suggested.
Or you can just get your "self" with a simple (module that does)
macro self () { '$?SELF' }
Kurt skribis 2005-06-20 19:46 (-0400):
> On 6/20/05, Juerd wrote:
> > Or you can just get your "self" with a simple (module that does)
> > macro self () { '$?SELF' }
> And you could do the same for `./`.
Certainly.
However, there has proven to be much d
avoid having to use ./
There are many ways to "avoid" it.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
"./", so we have to trust Larry's decision on this. I don't
think further discussing this is really fruitful, as it has already been
discussed more than is good for us.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
xplicitize" code (replacing ./method with $?SELf.method and .foo
> with $_.foo and so on)
Deparse.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
this optimisation.
It's not an optimization. It's necessary, unless there is a way to
receive arguments in unknown context, which is a bit of complexity and
complication we can very easily avoid needing.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
chromatic skribis 2005-06-21 9:23 (-0700):
> I already have a fantastic way to write code that does nothing: I
> don't write it.
Just add braces around the thing you don't write.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_
Rod Adams skribis 2005-06-21 20:08 (-0500):
> Should we then perhaps rename it to: DEPRECATED_PERL5_AUTOLOAD ?
That sounds like a good idea. In fact, a pragma to enable it would not
be a bad idea either, IMO.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution
Maxim Sloyko skribis 2005-06-22 14:27 (+0400):
> Can we do "return undef" in this case? I mean. can undef mean a no-op
> in subref context?
That's a rather false value. I hope undef is not executable. It's a much
better idea to special case empty closures, IMO.
Juerd
gt; &function := sub { try_some_stuff || &old_behaviour }
> Except, with binding it doesn't work like that, you end up with an infinite
> loop.
I still think subs should have a value, than can be copied :)
my &old_behaviour = &function;
&function = sub { try_so
#x27;s what submethods are for. Submethods aren't inherited. It is
unclear to me whether subs are.
Two requests:
1. Please indent code and don't use cutting lines.
2. Please use visually more different names, fun1 and fun2 look a lot
alike. Consider foo and bar.
Juerd
--
http://convoluti
ocant can be a class too.
> Do you mean, that submethods for class methods (I don't know, if is it
> the official name of the non instance methods)? I don't think so.
No.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html
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
ojn,
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/>.
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 consult
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.
--
kora
[EMAIL PROTECTED] skribis 2007-03-28 13:17 (-0700):
> +block) early using the C verb. More precidely, it leaves the
precisely?
--
korajn salutojn,
juerd waalboer: perl hacker <[EMAIL PROTECTED]> <http://juerd.nl/sig>
convolution: ict solutions and consultancy <[EMA
f needs a boolean output
template, but it would 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]>
h: Perl is very hard to read for someone who
doesn't know Perl well enough. But that's practically true for almost
language, be it Python or Japanese.
--
korajn salutojn,
juerd waalboer: perl hacker <[EMAIL PROTECTED]> <http://juerd.nl/sig>
convolution: ict solutions and consultancy <[EMAIL PROTECTED]>
put" be?
The Perl Way:
%count $input (or %count input) looks wrong, error caught even before
compile time, programmer time and energy conserved.
| And how on earth would you write "object.foo()", where foo is a variable
| holding a reference to a method, not the name of the method, if you had
| no sigils?
The Perl Way:
$object.foo() calls the method called "foo".
$object.$foo() calls the method that is in the variable $foo.
--
korajn salutojn,
juerd waalboer: perl hacker <[EMAIL PROTECTED]> <http://juerd.nl/sig>
convolution: ict solutions and consultancy <[EMAIL PROTECTED]>
se if we had line \
continuation characters in here, 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]>
ng style. And since my
preferred style is different, I'm glad you're not designing Perl 6.
--
korajn salutojn,
juerd waalboer: perl hacker <[EMAIL PROTECTED]> <http://juerd.nl/sig>
convolution: ict solutions and consultancy <[EMAIL PROTECTED]>
list context:
my @quux = (@foo, @bar); # These arrays "foo" 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.
--
k
a language needs a good balance between symbols and letters comma and
for a programming language comma I think alternating between the two is
close to a perfect balance comma whereas in human languages once, every
$few (words) is.probably; "period"
--
korajn salutojn,
juerd waalboer: perl
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
his does not work with pugs, so I don't know if I am wrong, or
pugs is wrong.
--
korajn salutojn,
juerd waalboer: perl hacker <[EMAIL PROTECTED]> <http://juerd.nl/sig>
convolution: ict solutions and consultancy <[EMAIL PROTECTED]>
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]>
.html
I 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>
convoluti
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
ld
still generate it from something else. A few macros could help ignore
the inline documentation.
--
korajn salutojn,
juerd waalboer: perl hacker <[EMAIL PROTECTED]> <http://juerd.nl/sig>
convolution: ict solutions and consultancy <[EMAIL PROTECTED]>
o ever have consistent, semantic, structured OO
documentation throughout CPAN (and numerous in house projects), we must
start with Perl itself, and there isn't the option of having this tool
be third party.
--
korajn salutojn,
juerd waalboer: perl hacker <[EMAIL PROTECTED]> <http://ju
e gained by pre-empting this and picking
> something initially.
I disagree very strongly.
--
korajn salutojn,
juerd waalboer: perl hacker <[EMAIL PROTECTED]> <http://juerd.nl/sig>
convolution: ict solutions and consultancy <[EMAIL PROTECTED]>
601 - 700 of 712 matches
Mail list logo