From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,4c42ac518eba0bbe X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,4c42ac518eba0bbe X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,4c42ac518eba0bbe X-Google-Attributes: gid1014db,public From: rodemann@thales (Joerg Rodemann) Subject: Re: Coding for Obscurity Date: 1997/11/27 Message-ID: <347d8a13.0@news.uni-ulm.de>#1/1 X-Deja-AN: 293159240 References: <343fbb5a.0@news.iprolink.ch> <34466EB4.3381@dynamite.com.au> <6275dt$agm$3@news.on> <344BCED0.2D51@dynamite.com.au> <62tpap$7gh$1@darla.visi.com> <3470EF6E.F74@lysator.liu.se> <64qsf0$ccc@dfw-ixnews11.ix.netcom.com> <3474BF28.2F9F@dynamite.com.au> <34741AAF.1C7@CWA.de> <34788101.7367@scitex.com> <01bcf8fc$e918e0a0$0644a3cd@jimj.jumpmusic.com> <3479F8FB.2D7F@mWilden.com> <65fr08$vtu$1@flood.weeg.uiowa.edu> <01bcfa5d$7aab9920$LocalHost@default> <347C426D.31A@sensor.com> Followup-To: comp.lang.ada,comp.lang.c,comp.lang.c++ Organization: University of Ulm, SAI, Germany Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++ Date: 1997-11-27T00:00:00+00:00 List-Id: Ron Natalie (ron@sensor.com) wrote: > Leon Jones wrote: > > Ternary operators are horrendous and I avoid them at > > all costs. > I wouldn't say that. They are very useful. > It's only when people don't use the result of the > ternary expression, but rather rely on side effects > that's egregious. Well, maybe that is the point that disturbs me with the ? : expressions. One of the examples given in a former post made quite sense although I do not like these operators. Indeed, if used in a functional manner (no side effects) they seem to be more readable than alternativ constructions like "if ... else ...". Probably I saw to many occurences of these were everything was hidden behind side effects. Same is to be said about stand alone expressions like: a() || b(); Perhaps I developped kind of a distrust towards programmers and their concerns about readability. *sigh* Regards Joerg -- rodemann@mathematik.uni-ulm.de | Dipl.-Phys. Joerg S. Rodemann Phone: ++49-(0)711-5090670 | Flurstrasse 21, D-70372 Stuttgart, Germany -------------------------------+--------------------------------------------- rodemann@hlrs.de | University of Stuttgart, Computing Center Phone: ++49-(0)711-685-5815 | Visualization Department, Office: 0.304 Fax: ++49-(0)711-682-357 | Allmandring 30a, D-70550 Stuttgart, Germany