🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.perl.misc
Article #10

Re: PROGRAMERS OF ANY LANGUAGE

#10
From: Zenin
Date: Sun, 14 Apr 1996 18:29
49 lines
1916 bytes
Kazimir Kylheku <c2a192@ugrad.cs.ubc.ca> wrote:
	>snip<
: The programmer is forced to ``disambiguate'':
: 	if (....) {
: 		if (....) {	
: 			if (....) {
: 				statement;
: 			}
: 		}
: 	} else {
: 		statement;
: 	}
: What a PITA. (And I ain't referring to an Italian meal also known as a pizza
: pocket, either).

	You don't program much, do you? :)

		if( ... && ... && ... ) {
			statement;
		} else {
			statement;
		}

	Or if you must indent each test

		if( ... &&
		        ... &&
			    ... ) {
				statement;
		}

	Either way the code is cleaner & faster.
	But wait, you want to now put statements after each?  In that case
	you are back to {} in either language, as you should be since you
	then have a combined statement again.

	It's still hard for me to understand even though good perl code is
	normaly less then 1/10 the size of simlar code in nearly any other
	language, that people still complain about having to "waste" time
	typing a couple }{'s or )('s here and there... ;-/

	:)
______
     /  Spelling mistakes?  Their couldn't be. -My modem is error correcting.
    /
   /    Zenin@Best.com                   ---->>ROCKY HORROR ARCHIVE<<----
  /      ___    __  o   __
 /      /___\ |/  \ | |/  \                 http://www.best.com/~zenin/
/_______\___  |   | | |   |_______________________________________________
Technical Details
Message-ID: <4krg5h$7tt@nntp1.best.com>
Path: arc1-ca.pugleaf.net!nntp1.best.com!zenin
References: <Pine.SOL.3.91.960329010021.13209A-100000@harvey> <316A6189.4287@wight.hursley.ibm.com> <4kg58c$djh@kalypso.cybercom.net> <4kqe6q$1tm@innocence.interface-business.de> <4kr869INN35k@keats.ugrad.cs.ubc.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!nntp1.best.com!zenin
From: Zenin <zenin@best.com>
Newsgroups: comp.lang.perl.misc,comp.lang.c
Subject: Re: PROGRAMERS OF ANY LANGUAGE
Date: 14 Apr 1996 18:29:05 GMT
Organization: Rocky Horror, Barely Legal (Berkeley, CA)
Message-ID: <4krg5h$7tt@nntp1.best.com>
References: <Pine.SOL.3.91.960329010021.13209A-100000@harvey> <316A6189.4287@wight.hursley.ibm.com> <4kg58c$djh@kalypso.cybercom.net> <4kqe6q$1tm@innocence.interface-business.de> <4kr869INN35k@keats.ugrad.cs.ubc.ca>
NNTP-Posting-Host: shellx.best.com