1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Languages -->
<!--X-From-R13: pynjerapNphc.uc.pbz -->
<!--X-Date: from major.globecomm.net [207.51.48.5] by mx5.ibm.net id 864159000.38452&#45;1 Tue May 20 20:10:00 1997 -->
<!--X-Message-Id: 199705202016.NAA02273#xsvr3,cup.hp.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 9705181712.80s1@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Languages</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:clawrenc#cup,hp.com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00636.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00638.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00563.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00569.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00637">Author</A>
&nbsp;|&nbsp;<A HREF="#00637">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00637">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Languages</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev] Languages</LI>
<LI><em>From</em>: <A HREF="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</A></LI>
<LI><em>Date</em>: Tue, 20 May 97 13:12:44 -0700</LI>
<LI><em>Reply-to</em>: <A HREF="mailto:claw#null,net">claw#null,net</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
In &lt;<A HREF="msg00563.html">9705181712.80s1#ami-cg,GraySage.Edmonton.AB.CA</A>&gt;, on 05/18/97 
   at 10:22 AM, cg#ami-cg,graysage.edmonton.ab.ca (Chris Gray) said:

&gt;[Chris L:]
&gt;:A key part of C's use of braces is implicit in the base design of the
&gt;:language (and obvious when looking at the BNF diagram).  In C, any place
&gt;:that a statement can be used (in a non-expression context), a pair of
&gt;:braces containing one or more statements can be used instead.	Its a
&gt;:slightly subtle and very pleasing piece of orthogonality, and is why:

&gt;[Example deleted]

&gt;Yep, that's true. However, it is also the cause of some of the
&gt;problems in C. It can be a pain to see something like this filling up
&gt;some of your window:

&gt;		}
&gt;	    }
&gt;	}
&gt;    }
&gt;}

Which is why a good friend of mine (and a damned fine programmer)
codes that as:

  if () {
    while () {
      if () {
        if () {
  } } } } 
        

&gt;The compiler can recover a lot better, too, and often report errors
&gt;more reliably/understandably. This is one of those language-religion
&gt;things that everyone has their own view on. Food for endless debate!
&gt;:-)

Yup.  I note your preference for od/esac/etc, but I prefer the braces
as they offer me one rule and one format which can be applied anywhere
vs a per-statement type special case.  As you say, it makes for horse
races.

-- 
J C Lawrence                           Internet: claw#null,net
(Contractor)                           Internet: coder#ibm,net
---------------(*)               Internet: clawrenc#cup,hp.com
...Honorary Member Clan McFUD -- Teamer's Avenging Monolith...


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00563" HREF="msg00563.html">Re: [MUD-Dev] Languages</A></STRONG>
<UL><LI><EM>From:</EM> cg#ami-cg,GraySage.Edmonton.AB.CA (Chris Gray)</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00636.html">Re: [MUD-Dev]  RP thesis...</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00638.html">Re: [MUD-Dev] Re: Prepositions and parsing</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00563.html">Re: [MUD-Dev] Languages</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00569.html">Re: [MUD-Dev] Languages</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00637"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00637"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>Support mud [was Re: Languages]</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00535" HREF="msg00535.html">Support mud [was Re: Languages]</A></strong>, 
Matt Chatterley <a href="mailto:root#mpc,dyn.ml.org">root#mpc,dyn.ml.org</a>, Sun 18 May 1997, 02:53 GMT
<UL>
<LI><strong><A NAME="00553" HREF="msg00553.html">Support mud [was Re: Languages]</A></strong>, 
Oliver Jowett <a href="mailto:oliver#sa-search,massey.ac.nz">oliver#sa-search,massey.ac.nz</a>, Sun 18 May 1997, 07:48 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00536" HREF="msg00536.html">Re: [MUD-Dev] Languages</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Sun 18 May 1997, 02:58 GMT
</LI>
</ul>
<LI><strong><A NAME="00563" HREF="msg00563.html">Re: [MUD-Dev] Languages</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Mon 19 May 1997, 00:17 GMT
<UL>
<LI><strong><A NAME="00637" HREF="msg00637.html">Re: [MUD-Dev] Languages</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Wed 21 May 1997, 03:10 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00569" HREF="msg00569.html">Re: [MUD-Dev] Languages</A></strong>, 
Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Mon 19 May 1997, 03:25 GMT
<UL>
<LI><strong><A NAME="00572" HREF="msg00572.html">Re: [MUD-Dev] Languages</A></strong>, 
Adam Wiggins <a href="mailto:nightfall#user1,inficad.com">nightfall#user1,inficad.com</a>, Mon 19 May 1997, 07:02 GMT
</LI>
<LI><strong><A NAME="00640" HREF="msg00640.html">Re: [MUD-Dev] Languages</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Wed 21 May 1997, 03:45 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00601" HREF="msg00601.html">Re: [MUD-Dev] Languages</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Tue 20 May 1997, 00:12 GMT
</LI>
</ul>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>