Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ll-xn!cit-vax!ucla-cs!pismo!marc From: marc@pismo.cs.ucla.edu (Marc Kriguer) Newsgroups: comp.lang.c Subject: Re: Writing readable code Message-ID: <6973@shemp.UCLA.EDU> Date: Thu, 2-Jul-87 06:14:55 EDT Article-I.D.: shemp.6973 Posted: Thu Jul 2 06:14:55 1987 Date-Received: Sat, 4-Jul-87 04:24:52 EDT References: <1158@copper.TEK.COM> <6858@auspyr.UUCP> <17171@cca.CCA.COM> <13008@topaz.rutgers.edu> <1571@sfsup.UUCP> Sender: root@CS.UCLA.EDU Reply-To: marc@pismo (Marc Kriguer) Organization: UCLA Computer Science Department Lines: 27 In article <13008@topaz.rutgers.edu>, ron@topaz.rutgers.edu.UUCP writes: > MY PET PEEVES: > > 2. Needless use of the comma operator and parenthesis to demonstrate > manhood to the obliteration of code readability, e.g. > > if((fd=open("foo",1)<0) (versus) > fd = open("foo", 1); > if(fd == -1) > -Ron This is an example of the use of the comma operator? I thought the comma operator was something along the likes of: { a = b, c} which sets a to b, then returns the value of c. Isn't the comma in Ron's example just a delimiter between parameters to open() ? _ _ _ Marc Kriguer / \/ \/ \ / / / __ ___ __ BITNET: REMARCK@UCLASSCF / / / / \ / / / ARPA: marc@pic.ucla.edu / / / \__/\_/ \_/\__/ UUCP: {backbones}!ucla-cs!pic.ucla.edu!marc