home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!munnari.oz.au!metro!usage!syacus!ian
- From: ian@syacus.acus.oz.au (Ian Joyner)
- Subject: Re: Why is C++ not considered a true OOL?
- Message-ID: <1993Jan26.015219.10541@syacus.acus.oz.au>
- Organization: ACUS Australian Centre for Unisys Software, Sydney
- References: <19JAN199315162645@trentu.ca> <51571@shamash.cdc.com> <1993Jan21.034840.11361@syacus.acus.oz.au> <1993Jan22.194724.22151@ucc.su.OZ.AU>
- Date: Tue, 26 Jan 1993 01:52:19 GMT
- Lines: 47
-
- maxtal@extro.ucc.su.OZ.AU (John MAX Skaller) writes:
-
- >In article <1993Jan21.034840.11361@syacus.acus.oz.au> ian@syacus.acus.oz.au (Ian Joyner) writes:
-
- >>A good language will 'help' you write good programs, especially where a
- >>team of a number of people are concerned. OOP helps organise a project
- >>somewhat, and C++'s OO features are a help in this way. However, since
- >>it is based on C it is less of a help than could be desired from a
- >>purer OOL.
- >>
- >>Some people see pure OOLs as restrictive.
-
- > Especially if they favour writing some programs
- >using an ADT approach rather than an OO one.
-
- I don't see this. One definition proposed for OOP is that it approximates
- to ADTs + inheritance. So many OO languages are strongly based on ADTs. I
- can't see anything magic about C++ that makes it a better tool for
- implementing ADTs than any other OO language.
-
- > C++ lack of restrictions may be seen as an advantage then.
-
- (OK lets all program in binary, no restrictions at all ;-))
-
- >It saves swapping languages for different types of project.
- >This enables reuse of existing codes.
-
- > It is certainly true that if you mix your idioms
- >in C++ you get a mess. However, writing consistent
- >programs using one of the many styles supported by C++
- >is possible, it just takes extra learning.
-
- John's going to love me for this, but arguments defending C++, based
- on ADTs and mixed idiom programming are as fatuous as the engineering
- compromise argument, which was effectively dispelled last year. These
- are weak arguments. Even if they were strong arguments, they could not
- make up for the fact that C++ is a language based on all the faults
- of C, and it therefore leaves much to be desired as an OOL, or a modern
- language of any paradigm.
-
- In summary, I think that ADTs, idioms, etc have become technical jargon
- that is now being thrown around to avoid the real issues.
- --
- Ian Joyner ACUS (Australian Centre for Unisys Software) ian@syacus.acus.oz
- "Where is the man with all the great directions?...You can't imagine it,
- how hard it is to grow, Can you imagine the order of the universe?" ABWH
- Disclaimer:Opinions and comments are personal.
-