Article View: rec.games.programmer
Article #226Re: TP or C ?
From: Mike Hamrick
Date: Mon, 27 Jul 1992 20:25
Date: Mon, 27 Jul 1992 20:25
29 lines
1824 bytes
1824 bytes
Markus Stumptner writes: >As for the comments on the cryptic C syntax - yes, it is harder to >read. Reading speed is not measured in characters, but words; >cognitively, word shapes have a lot to do with recognizing a word, and >moderately long keywords separated by whitespaces are easier to read >than bunched-together special characters (don't remember where I read >that, though). Yeah, C is sometimes very hard to read. I guess it is all a mater of what you are used to. I learned C about five years ago, and I remember being confused quite frequently. Things like this I still have to look at for a while: void Garply (void (*foo) (void (*bar) (void (*baz) (void)))); This is a function prototype for a function called Garply, it returns void and takes as it's argument foo, which is a pointer to a function which returns void and takes as it's argument bar, which is a pointer to a function which returns void and takes as it's argument baz, which is a pointer to a function which returns void and takes void as it's argument. This prototype could have also been written like this: void Garply (void (*) (void (*) (void (*) (void)))); This is of course ANSI C. If you try stuff like this on a non-ANSI compiler I would expect it to yak. --
Technical Details
Message-ID:
<1992Jul27.202520.6452@u.washington.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!milton.u.washington.edu!hamrickReferences:
<Brwrsq.8uI@news.cso.uiuc.edu> <5627@vexpert.dbai.tuwien.ac.at>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!milton.u.washington.edu!hamrick From: hamrick@milton.u.washington.edu (Mike Hamrick) Newsgroups: rec.games.programmer Subject: Re: TP or C ? Message-ID: <1992Jul27.202520.6452@u.washington.edu> Date: 27 Jul 92 20:25:20 GMT References: <Brwrsq.8uI@news.cso.uiuc.edu> <5627@vexpert.dbai.tuwien.ac.at> Sender: news@u.washington.edu (USENET News System) Organization: University of Washington, Seattle Lines: 29