Jeff 'Japhy' Pinyan wrote:
On Jan 31, Robert said:
When they say "uncuddled else" are they meaning:
A cuddled else is:
if (...) {
...
} else {
...
}
Anything other than THAT is an uncuddled else.
Got it. Thanks!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comman
On Jan 31, Robert said:
>When they say "uncuddled else" are they meaning:
A cuddled else is:
if (...) {
...
} else {
...
}
Anything other than THAT is an uncuddled else.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 htt
I would guess either that or
if()
{
#code
}
else
{
#more code
}
which I have seen, usually by people who primarily code in C.
-Original Message-
From: Robert [mailto:[EMAIL PROTECTED]
Sent: Sat 1/31/2004 2:24 PM
To: [EMAIL PROTECTED]
At 08:27 AM 8/27/01 -0600, Rob Waggoner wrote:
>If this is not an appropriate place to wax philosophic about perl, let me
>know and I will take my questions else where.
I think it's fine. You might get a little more informed response from
comp.lang.perl.moderated.
>I'm curious to hear from ot
Personally I'd have to say... it depends..
If it's a short and dirty script that will eventually be thrown away and
never modified by anyone other than yourself, it can be as messy as it has
to be to get the job done.
If on the other hand there's ever a possiblility that it will be used by
someo
At 06:05 PM 6/26/01 -0400, Gross, Stephan wrote:
>Why is this style
>
>if ($x) {
> do this;
> do that;
>}
>
>typically preferred over
>
>if ($x)
>{
>do this;
>do that;
>}
>
This tends to be a hotly debated religious issue. There are people who use
that later abomination. ;-) T
On Tue, 26 Jun 2001, Gross, Stephan wrote:
> Why is this style
>
> if ($x) {
> do this;
> do that;
> }
>
> typically preferred over
>
> if ($x)
> {
>do this;
>do that;
> }
>
> I like the latter example because it's easier to cut and paste the braces
> and everything in between. I
--- iain truskett <[EMAIL PROTECTED]> wrote:
> I use cuddled if what I'm doing would look silly otherwise. e.g.
>
> if ($blah) {
> one line;
> } elsif ($flurp) {
> one line;
> } else {
> one line;
> }
Hey! I think that was the thing that made me switch! =o)
In C I could say
if
* Paul ([EMAIL PROTECTED]) [27 Jun 2001 00:50]:
> --- iain truskett <[EMAIL PROTECTED]> wrote:
> > * Gross, Stephan ([EMAIL PROTECTED]) [26 Jun 2001 22:16]:
[...]
> I always used the second in C, but once I started using Perl and Java
> I kept finding something happening that made it seem more con
--- iain truskett <[EMAIL PROTECTED]> wrote:
> * Gross, Stephan ([EMAIL PROTECTED]) [26 Jun 2001 22:16]:
> > Why is this style
>
> > if ($x) {
> > do this;
> > do that;
> > }
>
> > typically preferred over
>
> > if ($x)
> > {
> >do this;
> >do that;
> > }
I always used the sec
At 06:05 PM 6/26/01 -0400, Gross, Stephan wrote:
>Why is this style
>
>if ($x) {
> do this;
> do that;
>}
>
>typically preferred over
>
>if ($x)
>{
>do this;
>do that;
>}
>
>I like the latter example because it's easier to cut and paste the braces
>and everything in between. I als
On Tue, Jun 26, 2001 at 06:05:15PM -0400, Gross, Stephan wrote:
> Why is this style
>
> if ($x) {
> do this;
> do that;
> }
This style is also known as The One True Brace Style, popularized by
Kernighan & Ritchie (in _The C Programming Language_). It's also popular
with other languages
* Gross, Stephan ([EMAIL PROTECTED]) [26 Jun 2001 22:16]:
> Why is this style
> if ($x) {
> do this;
> do that;
> }
> typically preferred over
> if ($x)
> {
>do this;
>do that;
> }
> I like the latter example because it's easier to cut and paste the
> braces and everything in b
On Tue, Jun 26, 2001 at 06:05:15PM -0400, Gross, Stephan wrote:
> Why is this style
>
> if ($x) {
> do this;
> do that;
> }
>
> typically preferred over
>
> if ($x)
> {
>do this;
>do that;
> }
>
> I like the latter example because it's easier to cut and paste the braces
> a
14 matches
Mail list logo