Re: A shorter long dot

2006-05-04 Thread Paul Johnson
On Thu, May 04, 2006 at 01:56:44PM +0300, Markus Laire wrote: On 5/1/06, Paul Johnson [EMAIL PROTECTED] wrote: But then again, as I said, I really don't see the problem that is being solved. This long-dot can be used for many things, not just method calls. Thanks for taking the time

Re: RFC: Community education page

2006-05-04 Thread Paul Johnson
certianly happens to me fairly often. Well, I'd obviously quite like that ;-) -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: A shorter long dot

2006-05-01 Thread Paul Johnson
code as much as the next programmer, and probably a lot more, but I just don't see the need for this syntax which seems ugly, confusing and unnecessary. But then again, as I said, I really don't see the problem that is being solved. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: handling undef better

2005-12-19 Thread Paul Johnson
to declare which hash keys or array elements are valid. Do we have that already? -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Optimisations (was Re: How much do we close over?)

2005-06-13 Thread Paul Johnson
, programmers shouldn't need to worry about what optimisations are going on under the covers. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Sun Fortress and Perl 6

2005-04-27 Thread Paul Johnson
. http://www.mail-archive.com/perl6-language@perl.org/msg11967.html -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: [pugs]weird thing with say ++$

2005-04-21 Thread Paul Johnson
they are, but maybe that's not such a great problem. See http://www.eskimo.com/~scs/C-faq/faq.html, especially sections 3.8 and 11.33 for details. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Python is not Java...but will Perl 6 be?

2004-12-03 Thread Paul Johnson
/ above, but after many discussions on this topic, I'm still not sure if I can. http://www.nntp.perl.org/group/perl.perl6.language/9576 -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: could u help me please?

2003-09-26 Thread Paul Johnson
) and look for a C list or newsgroup for any subsequent problems you might have. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Autovivification (was Re: E6: assume nothing)

2003-09-08 Thread Paul Johnson
this will be addressed (if it hasn't been already): perl5 -le 'print gah! if exists $a{b}{c}; print phooey! if exists $a{b}' perlfunc says: This surprising autovivification in what does not at first--or even second--glance appear to be an lvalue context may be fixed in a future release. -- Paul Johnson

Re: Threads and Progress Monitors

2003-05-30 Thread Paul Johnson
for the gory details. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Arrays, lists, referencing

2003-03-01 Thread Paul Johnson
be sensible for Perl 6 to define such an order. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Pre-defined properties/traits/etc.

2003-03-01 Thread Paul Johnson
together. If it's Wednesday it must be Zurich. We enjoyed you being here even if you can't remember it ;-) Oh well, it was only two letters. There wasn't anything about approximate matching in A5, was there? -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Pre-defined properties/traits/etc.

2003-03-01 Thread Paul Johnson
]ich joke, I think. Well, that might be attributing it a status it didn't deserve, but yes. perl -MString::Approx=amatch -wle \ 'print Close enough if amatch(Munich, [2], Zurich)' It's alright. It works just fine as a module. I think Parrot even has an appropriate opcode. -- Paul

Re: Arrays: Default Values

2003-01-29 Thread Paul Johnson
think the question of what to do with int arrays is somewhat separate. Might I suggest that storing undef in an int array is not appropriate, and thus having a (user defined) default value in an int array is also not appropriate. If you want power, you have to pay for it. -- Paul Johnson - [EMAIL

Re: Arrays: Default Values

2003-01-28 Thread Paul Johnson
$value = @a[$x] //= $x ** 2; or skip the = depending on how you are trading memory / speed. Yes, I know that just about everything is unnecessary to someone. To me, default values as a whole seem a little unnecessary, in fact. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Arrays: Default Values

2003-01-28 Thread Paul Johnson
, Paul Johnson wrote: Michael Lazzaro said: 2a) When a cell is explicitly re-undefined, does the default value take effect? my @a is Array( default = 'foo' ) = (1,2,3); @a[1] = undef; @a[1]; # undef, or 'foo'? STRAWMAN ANSWER: 'foo'. Seems

Re: Arrays: Default Values

2003-01-28 Thread Paul Johnson
causes @a[2] to stop returning the default. It doesn't have to be that way: $ perl -le 'sub e { print exists $a[shift] ? 1 : 0 } e 2; $a[4]++; e 2; e 4; delete $a[4]; e 2; e 4' 0 0 1 0 0 No, I don't know which side I'm arguing anymore :-) Actually, I do. I don't like exists on arrays. -- Paul

Re: L2R/R2L syntax

2003-01-17 Thread Paul Johnson
judge suggestions on their own merit. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: L2R/R2L syntax [x-adr][x-bayes]

2003-01-17 Thread Paul Johnson
was in fact supporting the much broader benefits of Parrot development and funding me probably benefitted Perl 5 even more than Perl 6). Well, I'll be pretty interested to discover what cause is deemed more deserving than Larry, Perl 6 or Parrot. The P still stands for Perl, right? -- Paul Johnson

Re: L2R/R2L syntax [x-adr][x-bayes]

2003-01-17 Thread Paul Johnson
On Sat, Jan 18, 2003 at 02:11:37AM +, Simon Cozens wrote: [EMAIL PROTECTED] (Paul Johnson) writes: That may well be true, but it seems to me that if people's jobs depend on those projects then there is (or could be or should be) a source of funding available, should such be required

Re: L2R/R2L syntax (was Re: Everything is an object.)

2003-01-10 Thread Paul Johnson
was at the top of the character, where I was more used to seeing it and it didn't look like an arrow any more, nor did it look very good to me. This is the way it looks on my browser ~ When I get home I'll mail a message showing how it looks in my xterm ;-) -- Paul Johnson - [EMAIL PROTECTED] http

Re: Partially Memoized Functions

2002-12-09 Thread Paul Johnson
management strategy? That is, what is the mechanism for manipulating the run-time system behavior of subs? sub days_in_month is cached(other_cache_function) ? Or what? How about the same way as one would do it now? Presumably we won't all forget how to program when Perl 6 comes out. -- Paul

Re: Partially Memoized Functions

2002-12-09 Thread Paul Johnson
On Mon, Dec 09, 2002 at 02:20:01PM -0800, Austin Hastings wrote: --- Paul Johnson [EMAIL PROTECTED] wrote: On Mon, Dec 09, 2002 at 01:58:11PM -0800, Austin Hastings wrote: Ahh. This is better. How does one implement a more sophisticated cache management strategy? That is, what

Re: String concatentation operator

2002-11-23 Thread Paul Johnson
lag which takes this approach. Lisp is Japanese? -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Continuations

2002-11-19 Thread Paul Johnson
qw/a b c/; -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Superpositions and laziness

2002-11-12 Thread Paul Johnson
to teach people what pure means, which would be much harder than teaching them what cached means. A pure function may be run zero, one or more times every time you call it. And every time you don't. ;-) [ I notice that Piers has just said about the same as me in one sentence. ] -- Paul

Re: Superpositions and laziness

2002-11-08 Thread Paul Johnson
:-) Quite. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Superpositions and laziness

2002-11-08 Thread Paul Johnson
optimisations which can be made with pure functions. It's a way of nailing down the contract on the function rather than specifying implementation details. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Keyword arguments

2002-11-06 Thread Paul Johnson
Austin Hastings said: sub callmysub { mysub(Testing .. 1, 2, 3!; key = 1024, align = Module::RIGHT); } Which, upon reflection, apparently introduces an implicit hashparsing context for autoquoting hashkeys. Those are pairs, aren't they? -- Paul Johnson - [EMAIL PROTECTED] http

Re: UTF-8 and Unicode FAQ, demos

2002-11-04 Thread Paul Johnson
hope it isn't ;-) -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Generalising properties

2002-10-29 Thread Paul Johnson
to be a problem for the applications that want the data, although I'd be glad to be shown that I am wrong and that the language can support that in a clean and concise way. Instead, I just want somewhere to hang arbitrary data. Thoughts? -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Perl6 Operator List, Take 3

2002-10-28 Thread Paul Johnson
On Mon, Oct 28, 2002 at 11:55:24AM -0800, Larry Wall wrote: Well, I don't believe in none since it's really easy to say !any() Does that have any implications for unless? -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Perl6 Operator List

2002-10-26 Thread Paul Johnson
On Sat, Oct 26, 2002 at 11:24:23AM +0100, Nicholas Clark wrote: On Sat, Oct 26, 2002 at 01:59:46AM +0200, Paul Johnson wrote: On Fri, Oct 25, 2002 at 06:28:28PM -0400, Miko O'Sullivan wrote: From: Larry Wall [EMAIL PROTECTED] : ? - force to bool context : ! - force

Re: Learning curve (was Re: Perl6 Operator List)

2002-10-26 Thread Paul Johnson
check after calling system(), so what's the point? How many people can even remember the English for $_? Or how to spell The string following whatever was matched by the last successful pattern match? Anyway, you can draw your own conclusions from the experiment. -- Paul Johnson - [EMAIL PROTECTED

Re: Perl6 Operator List

2002-10-25 Thread Paul Johnson
; print !!$x' perl -e '$x = 10.000; print -(-$x)' perl -e 'print . localtime' OK, Perl 5 doesn't have all these contexts, and these may be not the most compelling of examples, but you get the idea. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Lukasiewiczian logic (was Indeterminate math)

2002-10-15 Thread Paul Johnson
-porters/2001-11/msg00124.html -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Draft Proposal: Symmetry between Attributes and Accessors

2002-10-05 Thread Paul Johnson
as interchangeable might imply runtime overhead. Bah! I bet the internals list will laugh at you :-) -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Private contracts?

2002-10-03 Thread Paul Johnson
On Thu, Oct 03, 2002 at 02:29:57PM -0700, Michael Lazzaro wrote: (As a lame aside, are we going to have a concept of private vs. protected vs. public, or just private/public? No protected. Even Stroustrup admits it was a mistake in DE. -- Paul Johnson - [EMAIL PROTECTED] http

Re: Passing arguments

2002-09-30 Thread Paul Johnson
the inner loop C$_ will be an alias of C$fruit and there wouldn't be any way of getting the current line. Well, there's always $OUTER::_ and $OUTER::OUTER::_ etc if you _really_ need them. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Passing arguments

2002-09-21 Thread Paul Johnson
it at YAPC::NA too. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Accessor methods ?

2002-05-11 Thread Paul Johnson
baz? And just how alike are they? There must be a better way to describe this. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Loop controls

2002-04-27 Thread Paul Johnson
been an elsunless and I would have used it. Now I'm glad there isn't an elsunless and I never had the chance to use it :-) -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Unary dot

2002-04-12 Thread Paul Johnson
. Languages like C++ don't support this and you end up writing lots of accessor functions. Do that in Perl 5 and you pay the price of calling a subroutine. It sounds as though Perl 6 is heading towards supporting this. Have we actually got there? -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: nice2haveit

2001-07-16 Thread Paul Johnson
that the feature come with a way to seal the current context from manipulation, even possibly a way to block accesses. Doesn't sound very Perlish to me. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Between-Opcode Callbacks

2001-07-10 Thread Paul Johnson
./punctuation /sentence /comment -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Dot can DWIM without whitespace

2001-04-25 Thread Paul Johnson
with these sorts of things. Anyway, what do you think this is? Some kind of democracy? :) -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Larry's Apocalypse 1

2001-04-14 Thread Paul Johnson
the beaten track or people won't be sure which message they should post next and then the thread will die. [ :-) for those who like such things ] -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Larry's Apocalypse 1

2001-04-06 Thread Paul Johnson
this for "do" at least. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: pitching names for the attribute for a function with no memor y or side effects

2001-03-31 Thread Paul Johnson
known to the average programmer, the programmer is presented with an oportunity to learn, and may even be exposed to a completely new programming paradigm. And, by the way, it is already possible to do reasonable functional programming in Perl, and it looks as though Perl6 will provide even more support. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Distributive - and indirect slices (fwd)

2001-03-26 Thread Paul Johnson
On Mon, Mar 26, 2001 at 10:02:40AM -0600, David M. Lloyd wrote: $obj-method; # Clearly void context. Unless it's not. For example as the last statement in a subroutine. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: RFC on Coexistance and simulaneous use of multiple module version s?

2001-02-15 Thread Paul Johnson
which version of Foo:: you mean. Has anyone considered the problems associated with XS code, or whatever its replacement is? -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net