On Wed, 28 Apr 1999, [EMAIL PROTECTED] wrote:
> Alex,
>
>> I doubt it would be easier to do in C++. It's just e question of
>> designing it and coding a lot.
>
> I think for the average C++ user, it is always easier to program in C++
> than C. C++ is just a much richer language that does a lot of things for
> you (along with the C++ standard template library) if you know to use
> them.
>
> There are actually many many freeware projects out there that are done in
> C rather than C++ for what I'm sure are simliar reasons as to why you
> chose C. IMHO, this is going to make maintaining the popular freeware
> programs that change project ownership in the future more work than would
> be necessary if they were done in languages that lend themselves better
> towards reuse and have a richer set of code structuring capabilities.
>
>> You are of course welcome do do whatever you want with Dia, but i don't
>> feel like starting from the beginning, using a language i choose not to
>> choose from the start. Although C++ has matured a lot since then i still
>> think i would have choosen C, had i started today. Peoples opinion
>> differ, such is life.
>
> I am against causing a branch in the dia project just as much as I am
> a supporter of redoing it in C++. That's what's so frustrating about it
> for me.
>
> I should have said before that I agree with you that you have a done a
> good, straight-forward, not overly complicated design for Dia in C.
> In fact, for being done in C, I'd have to say I'm pretty impressed.
> But you're so close! A lot of the structure you've imposed could be
> automated simply by using C++, and could be amazingly elegant if done
> right.
I'm quite happy with it being in C. I've found C++ to have so many
syntactical quirks that it takes a *really* careful person to write
maintainable C++. C syntax is 'small' enough that you can hold it in your
head, C++'s isn't.
But we're getting off-topic here. Back to all the neat stuff we should add
to Dia. Rotations, anyone?
-Lars
--
Lars R. Clausen (http://shasta.cs.uiuc.edu/~lrclause) H�rdgrim of Westfield
But unlike Boruvka's algorithm, we do not recompute leaders from scratch every
time we add an edge. Instead,... the two leaders duke it out in a nationally-
televised no-holds-barred steel-case grudge match. --Lecture Notes for CS373