Re: code generation for the ternary operator
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 01 Nov 2011 06:25:12 -0700
On Tue, 1 Nov 2011 01:53:32 -0400, Owen Jacobson
<angrybaldguy@xxxxxxxxx> wrote, quoted or indirectly quoted someone
who said :
Having spent some time in languages with poor IDE support, I'd weaken
that: you can omit braces, when they reduce code readability, if the
language or its tools permits easy mechanical reformatting. While the
Java ecosystem has some good code formatters, not every language is so
fortunate.
In SCID thinking the brackets are LOGICALLY there, but whether they
are currently VISIBLE, is something you set as an option. It is
rather egotistical of other programmers to force me to read code their
way. (I am for {} all the time in real code. I just stripped them
from that example for brevity.)
see http://mindprod.com/project/scid.html
I could imagine some people displaying code with no { } at all, except
perhaps for loop and methods, showing structure purely by indentation.
For scanning code, you want to get hide clutter, perhaps even
arithmetic or other housekeeping.
..
--
Roedy Green Canadian Mind Products
http://mindprod.com
It's difficult to be rigorous about whether a machine really knows,
thinks, etc., because we’re hard put to define these things.
We understand human mental processes only slightly better than
a fish understands swimming.
~ John McCarthy (born: 1927-09-04 died: 2011-10-23 at age: 84).
Inventor of the term AI (Artificial Intelligence),
the short-circuit OR operator (|| in Java),
and LISP (LIst Processing Language) that makes EMACS
(Extensible MACro System) so addictive.
.
- Follow-Ups:
- Source code representation (was: code generation for the ternary operator).
- From: Daniel Pitts
- Source code representation (was: code generation for the ternary operator).
- References:
- Re: code generation for the ternary operator
- From: Owen Jacobson
- Re: code generation for the ternary operator
- Prev by Date: Re: RandomDirichlet?
- Next by Date: O.T. FTP upload
- Previous by thread: Re: code generation for the ternary operator
- Next by thread: Source code representation (was: code generation for the ternary operator).
- Index(es):