Article View: comp.arch
Article #113Re: A challenge to the anti-goto
From: John Hauser
Date: Sun, 01 Nov 1992 01:35
Date: Sun, 01 Nov 1992 01:35
48 lines
2111 bytes
2111 bytes
In article <Bwznzx.Dr1@mentor.cc.purdue.edu> hrubin@mentor.cc.purdue.edu (Herman Rubin) writes:
>In article <1css0nINNc51@agate.berkeley.edu> jhauser@pine.CS.Berkeley.EDU (me) writes:
>>And if your compiler won't let you do basic formatting, Herman, I suggest
>>you toss it and get another. I'm sure there are some that will.
>
>Where does a faculty member get such a compiler? I have not run this through
>a compiler; about all I can think of doing to get this coded intelligently is
>to get a compiler not to do too much damage, and tweak the assembler output.
Uh, clearly I wasn't clear. What I meant was that---as much as you complain
about shortcomings in languages and compilers---most modern languages (and
their compilers) don't prevent you from writing your code in a readable,
well-formatted style. Why not use indentation to show nesting, for example,
like most folks do? (Or does that hurt performance, too?) You know;
something like:
extern B;
n = 0;
m = 0;
b = B;
{
goto start;
case 1: {
n += 1;
}
case 3:
case 5:
case 6:
case 9:
case 10:
case 11:
case 12:
start:
g = ....;
switch( g ){
case 2: goto label1;
case 4: goto label2;
case 7: {
g4 = 1;
goto label3;
}
.... etc.
--------------------------------------------------------------------------n
Boycott redwood. Boycott Louisiana-Pacific. Keep the forests. YYYYYYYYYYY
John Hauser---jhauser@cs.berkeley.edu YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
Technical Details
Message-ID:
<1cvc8jINNkv4@agate.berkeley.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!spool.mu.edu!agate!pine.CS.Berkeley.EDU!jhauserReferences:
<BwxsF6.3DF@mentor.cc.purdue.edu> <1css0nINNc51@agate.berkeley.edu> <Bwznzx.Dr1@mentor.cc.purdue.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!spool.mu.edu!agate!pine.CS.Berkeley.EDU!jhauser From: jhauser@pine.CS.Berkeley.EDU (John Hauser) Newsgroups: comp.arch,comp.lang.misc Subject: Re: A challenge to the anti-goto Date: 1 Nov 1992 01:35:15 GMT Organization: University of California, Berkeley Lines: 48 Message-ID: <1cvc8jINNkv4@agate.berkeley.edu> References: <BwxsF6.3DF@mentor.cc.purdue.edu> <1css0nINNc51@agate.berkeley.edu> <Bwznzx.Dr1@mentor.cc.purdue.edu> NNTP-Posting-Host: pine.cs.berkeley.edu