Re: [perl #21668] APL doesn't use sigils

2003-03-26 Thread Benjamin Goldberg
Stéphane Payrard wrote: [snip] > Non alphabetic characters are very conspicuous, so redundancy should > be avoided. But Sigil _and_square/curly bracket are redundant. Not quite... In Perl5, the dereference operator (->) is optional between pairs of subscript operators, so $foo[$x]->[$y] can be wr

Re: [perl #21668] APL doesn't use sigils

2003-03-26 Thread Dan Sugalski
At 11:10 AM -0500 3/25/03, Adam Turoff wrote: On Mon, Mar 24, 2003 at 08:21:51PM -0500, Benjamin Goldberg wrote: And what happens if a programmer wants to have two different variables, of two different types, with the same name, such as @data and %data? Without sigils, it cannot be done. Vast nu

Re: [perl #21668] APL doesn't use sigils

2003-03-26 Thread Stéphane Payrard
On Wed, Mar 26, 2003 at 02:21:52PM +0100, Stéphane Payrard wrote: > On Wed, Mar 26, 2003 at 09:49:38AM +0100, Kay Roepke wrote: > > > > On Wednesday, March 26, 2003, at 04:29 AM, Adam Turoff wrote: > > > > >I've never come across a programmer who wishes he could do this > > >in C and have the co

Re: [perl #21668] APL doesn't use sigils

2003-03-26 Thread Stéphane Payrard
On Wed, Mar 26, 2003 at 09:49:38AM +0100, Kay Roepke wrote: > > On Wednesday, March 26, 2003, at 04:29 AM, Adam Turoff wrote: > > >I've never come across a programmer who wishes he could do this > >in C and have the compiler magically know what's what: > > > > int spam (int spam, char **spam

Re: [perl #21668] APL doesn't use sigils

2003-03-26 Thread Kay Roepke
On Wednesday, March 26, 2003, at 04:29 AM, Adam Turoff wrote: I've never come across a programmer who wishes he could do this in C and have the compiler magically know what's what: int spam (int spam, char **spam) { int eggs; double spam; re

Re: [perl #21668] APL doesn't use sigils

2003-03-25 Thread Benjamin Goldberg
Adam Turoff wrote: > Benjamin Goldberg wrote: >> Adam Turoff wrote: >>> On Mon, Mar 24, 2003 at 08:21:51PM -0500, Benjamin Goldberg wrote: And what happens if a programmer wants to have two different variables, of two different types, with the same name, such as @data and %data?

Re: [perl #21668] APL doesn't use sigils

2003-03-25 Thread Adam Turoff
On Tue, Mar 25, 2003 at 09:25:30PM -0500, Benjamin Goldberg wrote: > Adam Turoff wrote: > > On Mon, Mar 24, 2003 at 08:21:51PM -0500, Benjamin Goldberg wrote: > > > And what happens if a programmer wants to have two different > > > variables, of two different types, with the same name, such as @dat

Re: [perl #21668] APL doesn't use sigils

2003-03-25 Thread Benjamin Goldberg
Adam Turoff wrote: > > On Mon, Mar 24, 2003 at 08:21:51PM -0500, Benjamin Goldberg wrote: > > And what happens if a programmer wants to have two different > > variables, of two different types, with the same name, such as @data > > and %data? > > > > Without sigils, it cannot be done. > > Vast nu

Re: [perl #21668] APL doesn't use sigils

2003-03-25 Thread Sean O'Rourke
On Mon, 24 Mar 2003, Benjamin Goldberg wrote: > And what happens if a programmer wants to have two different variables, > of two different types, with the same name, such as @data and %data? > > Without sigils, it cannot be done. Actually, if you squint, other languages are far ahead of Perl in th

Re: [perl #21668] APL doesn't use sigils

2003-03-25 Thread Adam Turoff
On Mon, Mar 24, 2003 at 08:21:51PM -0500, Benjamin Goldberg wrote: > And what happens if a programmer wants to have two different variables, > of two different types, with the same name, such as @data and %data? > > Without sigils, it cannot be done. Vast numbers of C, C++, C#, Java, Python, Lisp

Re: [perl #21668] APL doesn't use sigils

2003-03-24 Thread Benjamin Goldberg
And what happens if a programmer wants to have two different variables, of two different types, with the same name, such as @data and %data? Without sigils, it cannot be done. -- $a=24;split//,240513;s/\B/ => /for@@=qw(ac ab bc ba cb ca );{push(@b,$a),($a-=6)^=1 for 2..$a/6x--$|;print "[EMAIL P

[perl #21668] APL doesn't use sigils

2003-03-23 Thread Kingsley G. Morse Jr.
# New Ticket Created by "Kingsley G. Morse Jr." # Please include the string: [perl #21668] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=21668 > To whom it may concern, Thanks for improving Perl. I'm an old APL programme