From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,8be18979db11f51c X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,fb631c9316319fef X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-02-28 06:30:06 PST Path: supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.novia.net.MISMATCH!novia!news-out.uswest.net!diablo.cs.uofs.edu!info.cs.scranton.edu!triangle.cs.uofs.edu!bill From: bill@triangle.cs.uofs.edu (Bill Gunshannon) Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: Drop C/C++ better sooner than later Date: 28 Feb 2001 14:22:50 GMT Organization: University of Scranton Distribution: world Message-ID: <97j1jq$g00$1@info.cs.uofs.edu> References: <97cd06$hcn$1@pyrite.mv.net> <97egck$vc6$3@info.cs.uofs.edu> <3A9AEFCD.AFC8431@infopuls.com> <97etsu$j41$1@pyrite.mv.net> <3A9B023A.CBD414A5@infopuls.com> <3A9C2B88.8032D829@infopuls.com> Reply-To: bill@cs.scranton.edu NNTP-Posting-Host: triangle.cs.uofs.edu X-Trace: info.cs.uofs.edu 983370170 16384 134.198.172.101 (28 Feb 2001 14:22:50 GMT) X-Complaints-To: news@cs.uofs.edu NNTP-Posting-Date: 28 Feb 2001 14:22:50 GMT X-Newsreader: xrn 9.01 Xref: supernews.google.com comp.os.vms:20505 comp.sys.dec:2907 In article , "Rick Cadruvi" writes: |> |> |> Believe me, I am NOT a defender of C. There are many things I HATE |> about C. Here's 4 of them: |> |> 1. Case Sensitivity. I am use to it, but I think it is a BIG |> problem. tmp, TMP, Tmp, tMp, tmP, TMp, tMP should NOT refer |> to different things. Of course they should. because they are all different things. They are all words spelled differently. If you don't want variable names like that use programming standards. Don't hamstring the language to solve a social problem. |> |> 2. SWITCH/CASE doesn't auto-break. I NEVER depend on being able |> to fall through to the next CASE in a SWITCH statement. The |> default should be BREAK and allow specifying CONTINUE if you |> want to drop through. THIS IS A BIG PROBLEM!!! Even as far back as Fortran I learned as a programmer that implicit anything was a bad idea. Never assume, always code explicitly. I think the same applies here. Maybe the language would be safer if the behavior changed, but the behavior of the language is documented and the programmer should take that into account. |> |> 3. BREAK. Break should be allowed from ALL Begin/End ({}) |> constructs (including IF ELSE). You should also be able to |> BREAK # where # is the number of Begin/End blocks you want |> to break out of. Sounds like you want GOTO back. I thought Dyjkstra convinced everyone that was a bad idea?? ;-) |> |> 4. Use of "==" for compares. It's WAY too easy to put in "=" |> instead. In fact, I usually do a specialized search of ALL |> my code before the first compile just to try and catch these. Well, you need two symbols for "equals", comparison and assignment. That is what the "=" means. Anything else would be non-intuitve. Question: What does ":" have to do with equality?? And yes, when we used to use Pascal as our beginning language here one of the most common coding errors was leaving out those pesky ":". Using double "=" for comparison is very intuitve when you consider that every other comparison that involves equality consists of a digraph with at least one "=". (ie. ">=", "<=", "!=") |> |> My ideal language would probably be mostly a combination of BLISS and C. There is no such thing as "the ideal language". Ada was an attempt to create (by committee no less!) a language that could be used for everything. The result is a bloated monster that requires so much in resources that it was never practical for small machines (and even some large ones like PDP-11's). Most languages were created to fill a discovered need at the time of their creation. A big part of Systems Analysis is identifying the problem accurately and then picking the right tool for the job. Everything is not a nail so you need more in your toolbox than a hammer. |> |> One thing I don't want is a language to get in the way. A lot of newer |> languages are |> designed to prevent programmers for doing things to keep them from making |> mistakes. |> I understand this logic, but what you have is an effort to over compensate |> because |> programmers were never taught to program well and they write BAD code. |> |> In order for a language to be useable, they invariably provide some |> "backdoor" |> that allows you to do the things you really want to do. As a result, those |> "backdoors" get abused. Along comes someone else who says they have to |> do something new that removes that "backdoor". As more code is written in |> the |> new language, it becomes clear that new "backdoors" have to be implemented |> because the language is preventing complex things from being done or at |> least |> is making them so difficult that they take too long. This was always my |> problem |> with ADA. Now I'm confused. What you say above is in complete agreement with what I have said, as well. Especially in the case of Ada. |> Time to implement a project is VERY important. It's one of the |> BAD |> things with C/C++ in terms of applications development. This I don't agree with. In most cases, the actual coding is the smallest part of the project. (at least well designed projects) It takes no longer for an experienced C programmer to code a task in C than it would take an experienced Ada programmer to do it in Ada. And believe it or not, regardless of the language used, programmers of the same level of experience will make an equivalent number of mistakes. It isn't the language that makes the mistakes. |> |> Progrmaming Languages are just part of the tool set programmers use to solve |> problems. What we really do is we solve problems. The code writing is |> merely |> a clerical function through which we express those solutions. True. All the best. bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves bill@cs.scranton.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include