Article View: comp.std.c++
Article #2933Re: stop adding keywords to C++
From: Scott Howlett
Date: Thu, 14 Dec 1995 20:23
Date: Thu, 14 Dec 1995 20:23
37 lines
2280 bytes
2280 bytes
In article <...>, tim@franck.Princeton.EDU (Tim Hollebeek) wrote: > In article <...>, Matt Austern <matt@physics.berkeley.edu> wrote: ... > >Alternative tokens, in other words, solve the same problem that > >trigraphs do. Personally, though, I think that alternative > >tokens are a much nicer solution. I'd much rather read an > >expression like "i < 0 or i >= n" than one like "i < 0 ??!??! i >= n". > ... > Now back to the issue at hand. Having lots of keywords makes this > problem even worse, unless you have an editor that can highlight them > automatically for you. The are simply too hard to pick out by eye. > && is much easier to see and recognize than 'and' is. That's not the point. '&&' may be easier to pick out than 'and', and '||' may easier to pick out than 'or' (although on a system with syntax coloring, I would disagree with this), but if I am programming on a system in which I _cannot_ _have_ '||', I would absolutely prefer 'or' over '??!??!'. Trigraphs are simply abominable to read, IMHO. Besides, having these keywords available to you does not force you to use them. There's nothing wrong with establishing coding standards which use an appropriate subset of the language. It's only when that subset is chosen through fear and ignorance that you run into problems. -- Scott Howlett, howlett@netcom.com "Probably the earliest fly swatters were nothing more than some sort of striking surface attached to the end of a long stick." --- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<howlett-1312951841480001@192.0.2.1>Path:
arc1-ca.pugleaf.net!howland.reston.ans.net!agate!agate!mattReferences:
<Pine.SOL.3.91.951203010216.13007A-100000@barney> <4a12d7$vps@mujibur.inmind.com> <4alt1o$13a2@news.ccit.arizona.edu> <MATT.95Dec13025435@Austern> <4an1nq$5s0@cnn.Princeton.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!howland.reston.ans.net!agate!agate!matt From: howlett@netcom.com (Scott Howlett) Newsgroups: comp.std.c++ Subject: Re: stop adding keywords to C++ Date: 14 Dec 1995 20:23:47 GMT Organization: (or lack thereof) Approved: matt@Austern (Matt Austern) Message-ID: <howlett-1312951841480001@192.0.2.1> References: <Pine.SOL.3.91.951203010216.13007A-100000@barney> <4a12d7$vps@mujibur.inmind.com> <4alt1o$13a2@news.ccit.arizona.edu> <MATT.95Dec13025435@Austern> <4an1nq$5s0@cnn.Princeton.EDU> NNTP-Posting-Host: austern.hip.berkeley.edu