Re: Perl6 -- what is in a name?

2002-01-28 Thread Stephane Payrard

On Mon, 28 Jan 2002, Garrett Goebel wrote:

 From: Brent Dax [mailto:[EMAIL PROTECTED]]
  Aaron Sherman:
  #
  # I think the first guy that gets hired to maintain Perl6 code,
  # and think hey, I know Perl, no sweat will disagree with
  # you.
  
  I disagree.  He'll see stuff he doesn't understand and try to
  consult perldoc on it, at which point he'll realize that he's
  working with Perl 6.  Then he'll run out, get Camel IV, read
  it, and go back to work. Programmer is working with a better
  version of language, program is fixed, and ORA made fifty
  bucks.  Everybody's happy.  :^)
 
 Perhaps. Or perhaps he'll be like our company's lead C++ developers. They
 liked Perl4 well enough for a certain problem domain, saw some Perl5 code
 and have tried to stay away from it ever since.

Pretty odd, I think that C++ is to C, what perl5 to perl4 except
they forgot about the backcompatibility thing. So, in a sense, C++
developper should like perl5.

I see Python and Ruby as cleant-up but incompatible perl5 just like
Java or C# are cleant-up C++.

Perl6 will be cleant-up perl5 with a bunch of new features that will make
more expressive than ever.

 
 Perl6 isn't going to make everyone happy.

I joked that java lover will just corps-dump (choke) when seeing:

 @dirpath ^=~ s{([^/])$}{$1/};

I love it.



-- 
Stéphane Payrard -- s.payrard@@wanadoo.fr

# mailstat
Most people don't type their own logfiles;  but, what do I care?





A3: hyper operators with operand of different size

2001-10-04 Thread Stephane Payrard

Hyper operators with operands of different size are partly covered
in A3:


  Hyper operators will also intuit where a dimension is missing from one
  of its arguments, and replicate a scalar value to a list value in that
  dimension.  That means you can say:
  @a ^+ 1

The former example a particular case of the size an operand being a
multiple of the other:

  my @a = 6; # = still supported in perl 6?
  @a ^= ( 1, 2, 3);

could be equivalent to

  my @a = ( 1, 2, 3, 1, 2, 3)

We could even extend to operands where none size is a multiple of the
other but I can't see any reason to do that. Also I can't see what
happens when we deal with multidimension arrays. I don't know/remember
if perl6 will make the distinction between jagged multidimensional
arrays (à la C and perl5) and rectangular ones

So my question is: where do we stop? What happen if we can't carry
an hyperator?

Really hyper-operator is too long :)
How do you say mot valise in English to denote this conflation of words,
I think Lewis Caroll had a word for that.


-- 
Stéphane Payrard -- s.payrard@@wanadoo.fr