[linux-audio-dev] [ot] [rant] gcc, you let me down one time too many
Jan Depner
eviltwin69 at cableone.net
Mon Jun 6 20:45:58 UTC 2005
On Sun, 2005-06-05 at 23:53, Dave Robillard wrote:
> On Sun, 2005-05-06 at 05:14 -0500, Jan Depner wrote:
> > On Sun, 2005-06-05 at 08:08, fons adriaensen wrote:
> >
> > > My aproach to C++ is very simple: I use it as 'C with classes'. No streams, no
> > > STL, no other nonsense. Gives me the best of both worlds - clean objects and
> > > low level.
> >
> >
> > Good answer. I've often wondered why anyone would use vectors.
>
> Because they dynamically resize, easily, and are generally much simpler
> to work with, perhaps? :)
>
C arrays dynamically resize easily (with realloc), are just as
simple to work with, and they're way faster. I'll take efficiency over
ease of use in most cases.
> Not that C++ doesn't still suck..
>
I actually like C++ for some things but you should always try to use
the best tool for the job. In most cases I prefer C.
Jan
More information about the Linux-audio-dev
mailing list