From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd45e29f9dafca87 X-Google-Attributes: gid103376,public From: Mark Lundquist Subject: Re: Ada vs. C/C++ (was re: bitwise something-or-other) Date: 2000/01/21 Message-ID: <388940A0.19D4DA60@rational.com>#1/1 X-Deja-AN: 576033760 Content-Transfer-Encoding: 7bit References: <3880D375.7E363123@hotmail.com> <38829638.0@news.pacifier.com> <3882FC1C.2BA8C959@hotmail.com> <85vmn2$ki1$1@nnrp1.deja.com> <38836CF2.AB738B8B@hotmail.com> <388905E0.81FEFBC5@rational.com> To: alexke@hotmail.com Content-Type: text/plain; charset=us-ascii Organization: Rational Software Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-01-21T00:00:00+00:00 List-Id: Once again, I am the first (maybe only) person to follow up on my _own_ posting... how pathetic, how typical... :-) But some editorial corrections are in order... Mark Lundquist (c'est moi) wrote: > ... > 1) I assume we're talking about C here, not C++. I think C++ is a lot harder > to learn than Ada, because while it's roughly the same in "size", it has a > lot of deep concepts (like "const correctness", linkage, etc.) that are not > only arcane, but are hightly cross-coupled, so that you kind of have to > understand all of it and keep your brain wrapped around it all in order to > really get any of it right. The following should have been in parentheses, because... well, it's parenthetical! It reads as if I thought Alex were arguing a particular point (viz. C knowledge making it easier to learn C++) and I'm arguing back against it. But he wasn't arguing that, so don't get me wrong. Some people have argued this (in fact it's one of the "core values" of C++), but like I said... in this context, it's parenthetical. > For this reason, I don't think knowing C gives > one any real advantage when it comes to learning C++ vs. learning Ada. > Instead, what it gives you is a false sense that "I'm already halfway there", > which gives you the hope you need to keep trying to learn the screwy > language! You're not really halfway there, but it helps to think you > are... :-) OK, next... > So, we have: > > In Ada In C > ----- --- > > packages "header file / implementation file" > convention > > private types ??? > > exceptions "you can program it", > setjmp()/longjmp(), whatever > > generics structs & callbacks > > tasks threads My little table was obligingly reformatted by Netscape :-( so it came out all screwy.Row 1 column 1 should read "packages", and row 1 column 2 should read "'header file / implementation file' convention". Row 3, column 2 should read "'you can program it', setjmp()/longjmp(), whatever". (Note, the row and column numbers start at 1... :-) sorry, very bad joke...) -- Mark