Re: RFC: Community education page

2006-05-04 Thread Paul Johnson
; %foo {'bar'} >> DTRT, but I can't > remember it", which 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-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 thin

Re: A shorter long dot

2006-05-01 Thread Paul Johnson
_.foo for @things_to_foo; or something. I like lining up my 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 i

Re: handling undef better

2005-12-19 Thread Paul Johnson
ble to do that, and maybe 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
d only be for the benefit of people and modules that mess with the op tree. Again, I submit that an optimisation that changes normal behaviour is broken and that, in general, 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
t since then it would seem that for some strange reason more people have been exposed to functional programming. 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
ogram Perl as if it had sequence points and undefined behaviour. This often results in explaining what 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
tters." > > I'd like to be able to s/Python/Perl 6/ 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: Some questions about operators.

2004-03-22 Thread Paul Johnson
Austin Hastings said: > Let's look at boolean xor: > > if ($a xor $b xor $c) {...} > > should succeed only when exactly one of ($a, $b, $c) is true. I think it is generally accepted that xor is true iff an odd nnumber of its argumnets are true. -- Paul Johnson - [E

Autovivification (was Re: E6: assume nothing)

2003-09-08 Thread Paul Johnson
rust 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 c

Re: Threads and Progress Monitors

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

Re: Pre-defined properties/traits/etc.

2003-03-01 Thread Paul Johnson
' It's alright. It works just fine as a module. I think Parrot even has an appropriate opcode. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Pre-defined properties/traits/etc.

2003-03-01 Thread Paul Johnson
rge 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: Arrays, lists, referencing

2003-03-01 Thread Paul Johnson
e of the left to right ordering. For example, select((select(OUTPUT_HANDLE), $| = 1)[0]); which is (was?) a fairly common idiom, is documented, used in core modules and tested. I suspect that a lot would break if the order of evaluation changed. And I think it would be sensible for Perl 6 to define such an order. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Arrays: Default Values

2003-01-29 Thread Paul Johnson
ays to be undef. Both approaches can also be extended to hashes. I 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

Re: Arrays: Default Values

2003-01-28 Thread Paul Johnson
27;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 Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Arrays: Default Values

2003-01-28 Thread Paul Johnson
03-01-28 at 14:47, 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); &g

Re: Arrays: Default Values

2003-01-28 Thread Paul Johnson
; my @a is Array( default => { $_ ** 2 }); > > STRAWMAN ANSWER: Yes, because it's cool. No, because it's unnecessary. You can always do my $value = @a[$x] //= $x ** 2; or skip the = depending on how you are trading memory / speed. Yes, I know that just about every

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

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

2003-01-17 Thread Paul Johnson
the companies who are (hopefully) making a profit on the backs of those projects. Yes, I know it's not that easy. No one's job depends on Perl 6 or Parrot (yet). Well, hardly anyone's :) Still, I suppose I am preaching to the choir in the wrong chapel. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

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

2003-01-17 Thread Paul Johnson
h > funding Dan 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

Re: L2R/R2L syntax

2003-01-17 Thread Paul Johnson
n change for its own sake. > I have to wonder how many people actually like this syntax, and how many > only say they do because it's Damian Conway who proposed it. I trust that we are all sufficiently grown up and devoid of marketing hype that we can judge suggestions on their own merit. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

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

2003-01-10 Thread Paul Johnson
On Fri, Jan 10, 2003 at 03:55:30PM -0500, Andrew Rodland wrote: > On Friday 10 January 2003 11:42 am, Paul Johnson wrote: > > Damian Conway said: > > > Andy Wardley wrote: > > >> The arrow is a special case. I don't read that first character > > >> a

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

2003-01-10 Thread Paul Johnson
ood. When I later saw it using mutt in an xterm, the tilde 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 messa

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 >

Re: Partially Memoized Functions

2002-12-09 Thread Paul Johnson
> 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 Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: String concatentation operator

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

Re: Continuations

2002-11-19 Thread Paul Johnson
print <<\"a" "b" "c">>; > print «\"a" "b" "c"»; Presumably without the backslash here too. > print qw/"a" "b" "c"/; -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Superpositions and laziness

2002-11-12 Thread Paul Johnson
le 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 Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Superpositions and laziness

2002-11-08 Thread Paul Johnson
at a higher level. Maybe the end result is the same, or maybe there are other 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: Superpositions and laziness

2002-11-08 Thread Paul Johnson
my copy of ispell > doesn't recognise it. But at least all English speakers can agree how to > spell words that don't end in i[zs]e (or end ou?r or [cs]e :-) Quite. -- 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, ar

Re: UTF-8 and Unicode FAQ, demos

2002-11-04 Thread Paul Johnson
be sorted out before we can start writing Perl 6 in earnest. In one way I hope that is true. In another I hope it isn't ;-) -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: UTF-8 and Unicode FAQ, demos

2002-11-02 Thread Paul Johnson
rying to fathom or explain the incantations required to program on various platforms with a backdrop of unfamiliar, buggy or non-existent Unicode support. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Generalising properties

2002-10-30 Thread Paul Johnson
chromatic said: > On Tue, 29 Oct 2002 14:19:59 -0800, Paul Johnson wrote: > >> So I would like to see able to tag arbitrary information onto just >> about everything, including files, packages, classes, subroutines, >> blocks, control structures, statements, lines, expre

Generalising properties

2002-10-29 Thread Paul Johnson
support for saying that, that seems 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: Learning curve (was Re: Perl6 Operator List)

2002-10-26 Thread Paul Johnson
ven 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] 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]> >

Re: Perl6 Operator List

2002-10-25 Thread Paul Johnson
ot; function that takes a context > name as the first argument. The negate operators we have already: perl -e '$x = "0"; print !$x' perl -e '$x = "10.000"; print -$x' The others save use doing: perl -e '$x = "2"; print !!$x' pe

Re: Lukasiewiczian logic (was Indeterminate math)

2002-10-15 Thread Paul Johnson
erties and overloading. http://www.xray.mpe.mpg.de/mailing-lists/perl5-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
t_ typically implemented in the same > manner. Treating the two 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 D&E. -

Re: Passing arguments

2002-09-30 Thread Paul Johnson
In the > equivalent Perl 6 syntax, insider 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: for loop and streams

2002-09-26 Thread Paul Johnson
er, from Larry or Damian, was that it might return undef or maybe it would keep returning its last value. Is that sufficiently vague? -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Passing arguments

2002-09-21 Thread Paul Johnson
to explicitly name it anyway, and maybe put some of the loop in a sub too. > So I'm unconvinced that having an explicitly named topic always also > clobbering C<$_> is a good idea. But if it is, then we need a simple > syntax for reading file input lines into an explicitly named topic. Allison Randall gave a really good talk on this at YAPC::Europe. I think she gave it at YAPC::NA too. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Accessor methods ?

2002-05-11 Thread Paul Johnson
I've always found the word "like" to be very wishy-washy in a computer langauge. In what way is newbaz like 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
eed to weigh in with opinions. Had I designed Perl there would have 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
they are calling a method or accessing an instance variable, and when I change my implementation from one to the other they shouldn't have to change their code. See http://www.elj.com/elj/v1/n1/bm/urp/ for more details. Languages like C++ don't support this and you end up writing lo

Re: Unary dot

2002-04-12 Thread Paul Johnson
Larry to say, "We have decided to use $me, $myself and $i. And then we also get the Perl 6 theme tune thrown in for free. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: explicitly declare closures???

2001-08-22 Thread Paul Johnson
On Wed, Aug 22, 2001 at 10:34:49AM +0100, Dave Mitchell wrote: > Paul Johnson <[EMAIL PROTECTED]> wrote: > > Actually, foo() is not a closure. A closure is an anonymous subroutine > > and foo() clearly has a name. > > Damain's definition of a closure inclu

Re: explicitly declare closures???

2001-08-22 Thread Paul Johnson
w, if you were proposing that named subroutines should behave like closures in this regard, which is what Piers and probably most others were expecting, I suspect that you would probably get broad agreement. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: nice2haveit

2001-07-16 Thread Paul Johnson
; > > uri > > We must demand 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
On Mon, Jul 09, 2001 at 11:46:30PM -0500, Jarkko Hietaniemi wrote: > > > XML > is > much > too > verbose And it should be neither written nor read by people ;-) > . > > -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net

Re: Dot can DWIM without whitespace

2001-04-25 Thread Paul Johnson
pretty good track record 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
sation and embellishment is allowed, but don't get too far off 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
's recent patch changes 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
gards to the > concept of "nosideeffects". By using a correct term, although it may be unknown 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

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
On Thu, Feb 15, 2001 at 02:47:55PM -0500, Steve Simmons wrote: > Paul Johnson wrote: > > > Has anyone considered the problems associated with XS code, or whatever > > its replacement is? > > Pardon my ignorance, but what's XS code? perldoc perlxs perldoc perlxstu

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

2001-02-15 Thread Paul Johnson
On Thu, Feb 15, 2001 at 10:43:38AM -0300, Branden wrote: > Paul Johnson wrote: > > > > Has anyone considered the problems associated with XS code, or whatever > > its replacement is? > > > > The big problem about having more than one version of a module

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

2001-02-15 Thread Paul Johnson
y. Just because you write Foo::bar in your module doesn't mean > > that Perl can't know 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