Re: Plethora of operators

2005-05-14 Thread Juerd
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

Re: Plethora of operators

2005-05-14 Thread Juerd
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

Re: ^method ?

2005-05-14 Thread Juerd
. 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

Re: ^method ?

2005-05-15 Thread Juerd
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

Re: ^method ?

2005-05-15 Thread Juerd
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

./method

2005-05-15 Thread Juerd
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

Re: ^method ?

2005-05-15 Thread Juerd
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

Re: ./method

2005-05-15 Thread Juerd
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

Re: ./method

2005-05-15 Thread Juerd
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

Re: ./method

2005-05-15 Thread Juerd
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

Re: $:attr vs $.:attr

2005-05-15 Thread Juerd
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

Re: ./method

2005-05-15 Thread Juerd
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

Re: ./method

2005-05-16 Thread Juerd
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

Re: $:attr vs $.:attr

2005-05-16 Thread Juerd
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 \

Re: ^method ?

2005-05-16 Thread Juerd
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/

Re: not 4,3,2,1,0;

2005-05-17 Thread Juerd
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

Re: (1,(2,3),4)[2]

2005-05-18 Thread Juerd
"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

Re: [S29] uniq

2005-05-19 Thread Juerd
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

Re: (1,(2,3),4)[2]

2005-05-19 Thread Juerd
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&#

Re: How do I... invoke a method reference

2005-05-19 Thread Juerd
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

Perl development server

2005-05-23 Thread Juerd
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

Re: Perl development server

2005-05-23 Thread Juerd
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

Re: Perl development server

2005-05-23 Thread Juerd
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

Re: Perl development server

2005-05-23 Thread Juerd
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

Re: Perl development server

2005-05-23 Thread Juerd
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

Re: Perl development server

2005-05-23 Thread Juerd
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

Re: Perl development server

2005-05-23 Thread Juerd
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

Re: Perl development server

2005-05-23 Thread Juerd
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

Re: Perl development server

2005-05-23 Thread Juerd
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

Re: Perl development server

2005-05-24 Thread Juerd
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

Re: Perl development server

2005-05-24 Thread Juerd
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

Re: (1,(2,3),4)[2]

2005-05-25 Thread Juerd
+%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

Re: (1,(2,3),4)[2]

2005-05-25 Thread Juerd
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

Re: (1,(2,3),4)[2]

2005-05-25 Thread Juerd
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

Re: (1,(2,3),4)[2]

2005-05-25 Thread Juerd
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

Re: (1,(2,3),4)[2]

2005-05-26 Thread Juerd
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

Re: (1,(2,3),4)[2]

2005-05-27 Thread Juerd
"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

Re: (1,(2,3),4)[2]

2005-05-27 Thread Juerd
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://

Re: Transparent / Opaque references

2005-05-27 Thread Juerd
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

Re: Transparent / Opaque references

2005-05-27 Thread Juerd
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

Re: Transparent / Opaque references

2005-05-28 Thread Juerd
= \$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

Re: Transparent / Opaque references = Link / Ref

2005-05-30 Thread Juerd
"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

Re: reduce metaoperator on an empty list

2005-05-31 Thread Juerd
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

Re: date and time formatting

2005-06-02 Thread Juerd
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

Re: Transparent / Opaque references

2005-06-02 Thread Juerd
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

Re: Transparent / Opaque references

2005-06-02 Thread Juerd
"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

Re: Transparent / Opaque references

2005-06-02 Thread Juerd
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

Re: Musing on registerable event handlers for some specific events

2005-06-08 Thread Juerd
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_

Re: PGE error?

2005-06-10 Thread 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

Re: q:e/.../ as a short cut for eval q/.../

2005-06-10 Thread Juerd
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

Re: Hyper-concat

2005-06-14 Thread Juerd
#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

Re: Hyper-concat

2005-06-14 Thread Juerd
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

Re: Hyper-concat

2005-06-14 Thread Juerd
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

Re: Lvalue Str::words iterator

2005-06-15 Thread Juerd
> 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

Re: Lvalue Str::words iterator

2005-06-15 Thread Juerd
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

Re: Lvalue Str::words iterator

2005-06-15 Thread Juerd
# 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

Re: ./method

2005-06-18 Thread Juerd
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

Re: ./method

2005-06-18 Thread Juerd
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

Re: ./method

2005-06-18 Thread Juerd
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

Re: ./method

2005-06-18 Thread Juerd
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

Re: ./method

2005-06-18 Thread Juerd
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

Re: ./method

2005-06-19 Thread Juerd
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

Re: AUTLOAD and $_

2005-06-20 Thread Juerd
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

Re: AUTLOAD and $_

2005-06-20 Thread Juerd
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

Re: proposal: 404 method

2005-06-20 Thread Juerd
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.

Re: proposal: 404 method

2005-06-20 Thread Juerd
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

Re: AUTLOAD and $_

2005-06-20 Thread Juerd
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

Re: AUTLOAD and $_

2005-06-20 Thread Juerd
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

Re: ./method

2005-06-20 Thread Juerd
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' }

Re: ./method

2005-06-20 Thread Juerd
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

Re: When can I take given as read?

2005-06-21 Thread Juerd
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

Re: ./method

2005-06-21 Thread Juerd
"./", 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

Re: ./method

2005-06-21 Thread Juerd
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

Re: AUTLOAD and $_

2005-06-21 Thread Juerd
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

Re: AUTLOAD and $_

2005-06-21 Thread Juerd
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_

Re: AUTLOAD and $_

2005-06-22 Thread 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

Re: AUTLOAD and $_

2005-06-22 Thread Juerd
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

Re: proposal: binding with a function

2005-06-23 Thread 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

Re: OO magic (at least for me)

2005-06-26 Thread Juerd
#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

Re: OO magic (at least for me)

2005-06-26 Thread Juerd
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

Re: for ... else

2007-03-03 Thread Juerd Waalboer
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

Re: [S09] "Whatever" indices and shaped arrays

2007-03-06 Thread Juerd Waalboer
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/>.

Re: lexical subs

2007-03-09 Thread Juerd Waalboer
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

Re: lexical subs

2007-03-09 Thread Juerd Waalboer
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

Re: [svn:perl6-synopsis] r14357 - doc/trunk/design/syn

2007-03-28 Thread Juerd Waalboer
[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

Re: What should file test operators return?

2007-04-13 Thread Juerd Waalboer
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]>

Re: Is Perl 6 too late?

2007-05-14 Thread Juerd Waalboer
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]>

Sigils by example (was: Re: Is Perl 6 too late?)

2007-05-14 Thread Juerd Waalboer
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]>

Re: Is Perl 6 too late?

2007-05-14 Thread Juerd Waalboer
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]>

Re: Sigils by example

2007-05-14 Thread Juerd Waalboer
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]>

Re: Sigils by example (was: Re: Is Perl 6 too late?)

2007-05-14 Thread Juerd Waalboer
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. --

Re: Is Perl 6 too late?

2007-05-14 Thread Juerd Waalboer
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

Re: Sigils by example

2007-05-14 Thread Juerd Waalboer
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

Re: .perl, nested arrays, parens and a bug with .perl after hyperop

2007-05-20 Thread Juerd Waalboer
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]>

Re: propose renaming Hash to Dict

2007-05-31 Thread Juerd Waalboer
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]>

Re: PERL arrays

2007-06-05 Thread Juerd Waalboer
.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

Re: Generalizing ?? !!

2007-06-11 Thread Juerd Waalboer
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

Re: POD <-> Code entanglement

2007-06-14 Thread Juerd Waalboer
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]>

Re: Referring to source code within Perldoc: the new A<> code

2007-06-21 Thread Juerd Waalboer
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

Re: Referring to source code within Perldoc: the new A<> code

2007-06-21 Thread Juerd Waalboer
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]>

<    2   3   4   5   6   7   8   >