From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Dave Held <dave(dot)held(at)arrayservicesgrp(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Woo hoo ... a whole new set of compiler headaches!! :) |
Date: | 2005-04-22 18:58:44 |
Message-ID: | 200504221858.j3MIwiA20384@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Dave Held wrote:
> > we'd need to do some wholesale revisions of internal APIs and
> > coding practices.
>
> No you wouldn't. You could make incremental revisions that offer a
> very gentle learning curve to C++. My suggestion is to convert the
> codebase iteratively, taking only small sure steps at each iteration.
> The internal APIs would evolve, not be overturned and replaced. And
> the coding practices encouraged by C++ generally lead to safer and
> more readable code, but would still not prevent people from writing
> idiomatic C within C++ if they really wanted/needed to (except where
> features have been converted to C++, of course).
I think there are some features we could use in C++. As a simple
example, "//" for comments. Howevrer, C++ is a far larger language than
C, and I am concerned we would be unable to control which features of
C++ got into our code and which did not, leading to a slower, overly
complex, uneven hunk of code.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Mayer | 2005-04-22 19:20:59 | Re: possible TODO: read-only tables, select from indexes only. |
Previous Message | Josh Berkus | 2005-04-22 18:58:10 | Re: Bitmap scans vs. the statistics views |