Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: OOP - Is this possible?

Author: Ratko V Tomic

Date: 14:13:43 03/28/02

Go up one level in this thread


>One main benefit using C++ for chessprograms is IMO to have typesafe macros
>(inline functions).

Inline functions (along with inline asm) have been available
in C compilers for years. Agree, they're very handy.

> C++ makes it easy to code on a rather high abstraction
> level, without loosing performance.

I think the proper level & form of abstraction comes naturally
from the understanding the problem. C++ merely helps formalize
the outward appearance of abstraction (which under the surface
still may be a complete nonsense, way out of sync with the
problem).

C++ assumes (although not nearly as much as Java) the programmer
is much dumber than what C assumes.  If one doesn't mind the
patronizing 'thinking and abstracting templates' and condescending
warnings whenever one tries to color outside the lines, then, yes,
it can be a pleasure to use.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.