🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.folklore.computers
Article #620903

Re: Computer science hot major in college (article)

#620903
From: Charlie Gibbs
Date: Mon, 26 Feb 2018 16:25
35 lines
2832 bytes
On 2018-02-25, Ahem A Rivet's Shot <ste...@eircom.net> wrote:

> On Sun, 25 Feb 2018 09:01:08 -0500
> Dan Espen <dan1...@gmail.com> wrote:
>
>> Gareth's Downstairs Computer
>> <headstone255.but.n...@yahoo.com> writes:
>>
>>> The major failing of C as a high level language is that logical
>>> and relational AND and OR operators are at the same precedence whereas
>>> logical should be higher thus ridding the necessity of extra brackets.
>> 
>> Hmm, code that relies on precedence rather than parens is not good code.
>> IMO.
>
> 	So use LISP :)
>
> 	You can go too far though, I think it's fair to assume BODMAS in
> any language with infix notation, and to assume that assignment comes way
> down the list in languages where an assignment is also an expression.

BODMAS?  Haven't heard that one.  Explain, please.

In my C code I use a few more parentheses than are strictly necesary, e.g.
    if((i > 0) && (i < 10))
but at least there's no ambiguity, and I think it's more readable.

The other argument for extra parentheses is that it can save some pain
if you port the code to another language with different precedence rules.

-- 
/~\  cgibbs@kltpzyxm.invalid (Charlie Gibbs)
\ /  I'm really at ac.dekanfrus if you read it the right way.
 X   Top-posted messages will probably be ignored.  See RFC1855.
/ \  HTML will DEFINITELY be ignored.  Join the ASCII ribbon campaign!
Technical Details
Message-ID: <p71ce13c90@news2.newsguy.com>
Path: mbox-mo1.pugleaf.net!o9ni8378qte.1!nntp.google.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!news2
References: <8242dc95-b34a-426b-8502-a1df37f19358@googlegroups.com> <p6knl7$q2i$1@dont-email.me> <slrnp8rud9.2k6.mausg@smaus.org> <p6lsvq$4cn$1@dont-email.me> <AlvjC.134645$Tz3.91192@fx25.am4> <ff7i4iFhdnlU16@mid.individual.net> <p6m6ki$vel$1@dont-email.me> <p6ufj4$jbf$5@dont-email.me> <20180225150303.f5a9e53f362b44cb375cece4@eircom.net>

Show Full Headers
Complete Article Headers
X-Received: by 10.55.157.150 with SMTP id g144mr8076242qke.45.1519662383602;        Mon, 26 Feb 2018 08:26:23 -0800 (PST)
X-BeenThere: alt.folklore.computers@googlegroups.com
Received: by 10.55.10.76 with SMTP id 73ls7769092qkk.7.gmail; Mon, 26 Feb 2018 08:26:22 -0800 (PST)
X-Received: by 10.55.73.139 with SMTP id w133mr7974715qka.26.1519662382009;        Mon, 26 Feb 2018 08:26:22 -0800 (PST)
MIME-Version: 1.0
Path: mbox-mo1.pugleaf.net!o9ni8378qte.1!nntp.google.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!news2
From: Charlie Gibbs <cgibbs@kltpzyxm.invalid>
Newsgroups: alt.folklore.computers
Subject: Re: Computer science hot major in college (article)
Date: 26 Feb 2018 16:25:37 GMT
Organization: NewsGuy.com
Lines: 35
Message-ID: <p71ce13c90@news2.newsguy.com>
References: <8242dc95-b34a-426b-8502-a1df37f19358@googlegroups.com> <p6knl7$q2i$1@dont-email.me> <slrnp8rud9.2k6.mausg@smaus.org> <p6lsvq$4cn$1@dont-email.me> <AlvjC.134645$Tz3.91192@fx25.am4> <ff7i4iFhdnlU16@mid.individual.net> <p6m6ki$vel$1@dont-email.me> <p6ufj4$jbf$5@dont-email.me> <20180225150303.f5a9e53f362b44cb375cece4@eircom.net>
NNTP-Posting-Host: p4c57f9b59e0ea4ceb56f8f5580941314149ae3684589819f.newsdawg.com
User-Agent: slrn/1.0.1 (Linux)
X-Received-Bytes: 2274
X-Received-Body-CRC: 3380769633
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit