Article View: comp.lang.misc
Article #6316Re: language commenting constructs
From: Peter da Silva
Date: Thu, 16 Mar 1989 15:56
Date: Thu, 16 Mar 1989 15:56
31 lines
1273 bytes
1273 bytes
In article <39273@oliveb.olivetti.com>, chase@Ozona.orc.olivetti.com (David Chase) writes:
> * VALOF <block> expressions
I put this back into Small-C as an exercize:
a = { switch(x) { ... return vowel; } };
> * many fewer parentheses (at the expense of added keywords, but it
> was a lot nicer to read)
I don't think this was a bonus.
> * :=/= instead of =/==
But this definitely was.
> * cleaner syntax for function definitions (VALOF helps here)
Debatable.
> LET min2(a,b) = a < b -> a,b
Take your pick:
min2(a,b) { return (a < b) ? a : b; }
#define min2(a,b) (((a) < (b)) ? (a) : (b))
--
Peter da Silva, Xenix Support, Ferranti International Controls Corporation.
Business: uunet.uu.net!ficc!peter, peter@ficc.uu.net, +1 713 274 5180.
Personal: ...!texbell!sugar!peter, peter@sugar.hackercorp.com.
Technical Details
Message-ID:
<3452@ficc.uu.net>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!bellcore!texbell!sugar!ficc!peterReferences:
<1543@zen.UUCP> <10460@lanl.gov> <39273@oliveb.olivetti.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!bellcore!texbell!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.lang.misc Subject: Re: language commenting constructs Message-ID: <3452@ficc.uu.net> Date: 16 Mar 89 15:56:21 GMT References: <1543@zen.UUCP> <10460@lanl.gov> <39273@oliveb.olivetti.com> Organization: Xenix Support Lines: 31