home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!mole-end!mat
- From: mat@mole-end.matawan.nj.us
- Subject: Re: Give me safe C++
- Message-ID: <1992Dec14.190553.14838@mole-end.matawan.nj.us>
- Summary: The _right_ amount of flexibility ...
- Organization: :
- References: <9234501.15945@mulga.cs.mu.OZ.AU> <Bz2nDF.7B6@fiu.edu> <1992Dec12.145403.26483@ucc.su.OZ.AU>
- Date: Mon, 14 Dec 1992 19:05:53 GMT
- Lines: 44
-
- In article <1992Dec12.145403.26483@ucc.su.OZ.AU>, maxtal@extro.ucc.su.OZ.AU (John MAX Skaller) writes:
- > In article <WARSAW.92Dec11124441@anthem.nlm.nih.gov> warsaw@nlm.nih.gov (Barry A. Warsaw) writes:
-
- > >>>>>> "Michael" == Michael Feathers <feathers@serss0> writes:
-
- > > Michael> ... I think that C and C++ are versatile languages precisely
- > > Michael> because no one ever tried to limit their functionality
- > > Michael> with good intentions.
-
- > >Agreed. IMHO, the real power of C++ as a development language is the
- > >ability to easily climb up and down the abstraction ladder depending
- > >on the context of the problem. Sometimes you need to mingle with the
- > >bits in the basement, sometimes you just need ADTs and sometimes you
- > >really want to do OOP. ...
-
- > And I think you tend to miss exactly where rigid restrictions on
- > functionality are the things which *yield* the very power you desire. ...
- > Function pointers ... are ... more powerful ... than mere virtual functions.
-
- > What makes virtual functions so useful is the fact that they
- > are so tightly restricted .. for example, unlike a genuine
- > function pointer they cannot be modified after object creation, ...
- ...
- > So when language designers propose restrictions, one must
- > carefully weigh up the pros and cons: most restrictions also
- > grant freedom. ...
-
- Absolutely. But some languages would give you the virtual functions and
- take away the function pointers!
-
- The point is, I think, having the right tools for the job at hand. Your
- high-level tools should be good enough that you'll never think of using
- anything else for a job they can do. But when they can't do the job--or
- more likely, a small part of the job--you shouldn't have to forsake your
- high-level tools entirely as a punishment for once using a down-and-dirty
- approach.
-
- And _that_ , I think, is one of great virtues of C++. Whether you think
- of it as `seamless' or just forgiving, it's there.
- --
- (This man's opinions are his own.)
- From mole-end Mark Terribile
-
- mat@mole-end.matawan.nj.us, Somewhere in Matawan, NJ
-