Path: 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 In article <39273@oliveb.olivetti.com>, chase@Ozona.orc.olivetti.com (David Chase) writes: > * VALOF 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.