Re: C style conditional statements

2004-05-12 Thread Simon Cozens
[EMAIL PROTECTED] (Aaron Sherman) writes: > is it really that new and scary? No, but not for the reasons you think. You seem to believe that you're comparing Perl and a Perl-derived language and pointing out that they're both like Perl, but it looks like you're comparing two Algol-derived language

Re: C style conditional statements

2004-05-12 Thread Luke Palmer
Matthew Walton writes: > Juerd wrote: > > >my $n = IO::Socket::INET.new LocalPort => 20010, Listen => 5; > > Or, if I'm remembering correctly: > > my IO::Socket::INET $n .= new LocalPort => 20010, Listen => 5; > > I really hope I'm remembering correctly. Is this turning into the 'look > ho

Re: C style conditional statements

2004-05-12 Thread Matthew Walton
Juerd wrote: my $n = IO::Socket::INET.new LocalPort => 20010, Listen => 5; Or, if I'm remembering correctly: my IO::Socket::INET $n .= new LocalPort => 20010, Listen => 5; I really hope I'm remembering correctly. Is this turning into the 'look how great Perl 6 is' thread?

Re: C style conditional statements

2004-05-12 Thread Larry Wall
On Wed, May 12, 2004 at 08:48:07PM +0200, Juerd wrote: : Some tools like Irssi and my own PLP tie a handle and then select it, to : intercept the output of normal print statements. But STDOUT can still be : specified explicitly if that's where you want things to go. : : This makes the tools compa

Re: C style conditional statements

2004-05-12 Thread Juerd
Luke Palmer skribis 2004-05-12 12:46 (-0600): > Well, the IO-objects are iterators, and you use <$iter> to iterate. It > makes sense that <> would iterate over $*ARGV by default. $*ARGS? > my $n = new IO::Socket::INET: LocalPort => 20010, Listen => 5; I'd like to be able[1] to write my

Re: C style conditional statements

2004-05-12 Thread Juerd
Larry Wall skribis 2004-05-12 11:39 (-0700): > On Wed, May 12, 2004 at 08:15:36PM +0200, Juerd wrote: > : A2 says $*STDIN and $*STDOUT. Has this been changed? > It's $*IN and $*OUT. I like this change! > : I'd hate to have to specify stdin and stdout in throw away scripts. > Just because there's

Re: C style conditional statements

2004-05-12 Thread Luke Palmer
Aaron Sherman writes: > Right off the bat, let me say that I've read A1-6, E7, A12, S3, S6, E1, > E6 and much of this mailing list, but I'm still not sure that all of > what I'm going to say is right. Please correct me if it's not. Did you really need to ask me to? ;-) > Perl 5: > > #!/u

Re: C style conditional statements

2004-05-12 Thread Larry Wall
On Wed, May 12, 2004 at 08:15:36PM +0200, Juerd wrote: : A2 says $*STDIN and $*STDOUT. Has this been changed? It's $*IN and $*OUT. : Also, will there no longer be the concept of a selected filehandle? That is correct. : I'd hate to have to specify stdin and stdout in throw away scripts. Just b

Re: C style conditional statements

2004-05-12 Thread Matthew Walton
Larry Wall wrote: On Wed, May 12, 2004 at 09:47:04AM +0100, Matthew Walton wrote: : For some reason, lots of people don't like it when indentation is : what's controlling their code structure... Indentation is a wonderful form of commentary from programmer to programmer, but its symbology is larg

Re: C style conditional statements

2004-05-12 Thread Juerd
Aaron Sherman skribis 2004-05-12 14:04 (-0400): > Perl 5: > #!/usr/bin/perl > while(<>) { > s/\w+/WORD/g; > print; > } > Perl 6: > #!/usr/bin/perl > while $stdin.getline -> $_ { Empty <> uses ARGV, not STDIN. It only uses STDIN if

Re: C style conditional statements

2004-05-12 Thread Aaron Sherman
On Wed, 2004-05-12 at 11:22, Simon Cozens wrote: > [EMAIL PROTECTED] (Luke Palmer) writes: > > familiar. You'll find this in the earlier Exegeses, Piers Cawley's > > article "Perl 6: Not Just for Damians" > > (http://www.perl.com/pub/a/2001/10/23/damians.html), some of the > > presentations from t

Re: C style conditional statements

2004-05-12 Thread Larry Wall
On Wed, May 12, 2004 at 09:47:04AM +0100, Matthew Walton wrote: : although it might perhaps be a little early to go for Python-like syntax. s/early/late/ Python's syntax succeeds in combining the mistakes of Lisp and Fortran. I do not contrue that as progress. Larry

Re: C style conditional statements

2004-05-12 Thread Larry Wall
On Wed, May 12, 2004 at 09:47:04AM +0100, Matthew Walton wrote: : For some reason, lots of people don't like it when indentation is : what's controlling their code structure... Indentation is a wonderful form of commentary from programmer to programmer, but its symbology is largely wasted on the

Re: C style conditional statements

2004-05-12 Thread Simon Cozens
[EMAIL PROTECTED] (Luke Palmer) writes: > familiar. You'll find this in the earlier Exegeses, Piers Cawley's > article "Perl 6: Not Just for Damians" > (http://www.perl.com/pub/a/2001/10/23/damians.html), some of the > presentations from the last few conference seasons, and scattered about > the c

Re: C style conditional statements

2004-05-12 Thread Luke Palmer
Pedro Larroy writes: > Yes, thanks a lot for your answers. I appreciate them. > > I think I'm now pretty attached to perl culture and I'm just a little > worried, as a humble perl programmer, about "things changing too much" > in perl6. Specially after reading coments like getting rid of the > pa

Re: C style conditional statements

2004-05-12 Thread Pedro Larroy
On Wed, May 12, 2004 at 12:57:15AM -0400, Andrew Rodland wrote: > On Tuesday 11 May 2004 10:13 pm, Larry Wall wrote: > > On Tue, May 11, 2004 at 08:31:55PM -0400, Andrew Rodland wrote: > > : On Tuesday 11 May 2004 08:00 pm, Pedro Larroy wrote: > > : > Hi > > : > > > : > Is there any chance that in

Re: C style conditional statements

2004-05-12 Thread Matthew Walton
Stéphane Payrard wrote: Le Wed, May 12, 2004 at 02:00:42AM +0200, le valeureux mongueur Pedro Larroy a dit: Hi Is there any chance that in perl6 there will be the possibility to write if/else statements without {}s with the condition at the beginning? Like if (condition) statement; In o

Re: C style conditional statements

2004-05-12 Thread Stéphane Payrard
Le Wed, May 12, 2004 at 02:00:42AM +0200, le valeureux mongueur Pedro Larroy a dit: > Hi > > Is there any chance that in perl6 there will be the possibility to write > if/else statements without {}s with the condition at the beginning? > > Like > > if (condition) > statement; > > In orde

Re: C style conditional statements

2004-05-11 Thread Andrew Rodland
On Tuesday 11 May 2004 10:13 pm, Larry Wall wrote: > On Tue, May 11, 2004 at 08:31:55PM -0400, Andrew Rodland wrote: > : On Tuesday 11 May 2004 08:00 pm, Pedro Larroy wrote: > : > Hi > : > > : > Is there any chance that in perl6 there will be the possibility to > : > write if/else statements withou

Re: C style conditional statements

2004-05-11 Thread Larry Wall
On Tue, May 11, 2004 at 08:31:55PM -0400, Andrew Rodland wrote: : On Tuesday 11 May 2004 08:00 pm, Pedro Larroy wrote: : > Hi : > : > Is there any chance that in perl6 there will be the possibility to write : > if/else statements without {}s with the condition at the beginning? : > : > Like : > : >

Re: C style conditional statements

2004-05-11 Thread Andrew Rodland
On Tuesday 11 May 2004 08:00 pm, Pedro Larroy wrote: > Hi > > Is there any chance that in perl6 there will be the possibility to write > if/else statements without {}s with the condition at the beginning? > > Like > > if (condition) > statement; > > In order not to break traditional C culture