Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: gitmo

Au contraire. Parens indeed do affect the way it’s parsed. It’s only syntactic sugar when the parens aren’t really needed and operator precedence and order of evaluation just so happen to coincide with what the programmer “meant”. And in the latter case you just got lucky, sloppy, but lucky. Many a bug has been attributed to it.


110 posted on 01/15/2013 10:17:53 PM PST by SpaceBar
[ Post Reply | Private Reply | To 106 | View Replies ]


To: SpaceBar

Agreed. I was referring to using parentheses to clarify the order of evaluation of arithmetic operators. Humans need them but the machine is fine without them.

The one I see causing more problems is using complex Boolean logic embedded within IF statements. I used to make my people break them down into multiple individual IF statements.


148 posted on 01/16/2013 4:59:48 AM PST by gitmo ( If your theology doesn't become your biography it's useless.)
[ Post Reply | Private Reply | To 110 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson