On Thursday 14 July 2005 11:29, William wrote:
>
> Since this was a thread about RG which is written in C++ I did not make it
> clear my comments referred to C++ but that is what I meant.  I am not
> entering a debate about the relative pros and cons of static typing as in
> C++ and dynamic typing as in Ruby and Python.

That's not what I meant. In those languages, you can pretty much do anything 
with integers and strings, the existing types are very general (not taking 
classes in consideration, of course). It's something I've come to understand 
not so long ago : it's better to tolerate faults rather than trying to 
enforce correctness.

> In a language like C++, 
> choosing overly general types is bad for maintainability.  I would
> certainly be interested to know of any specific counter-examples you might
> have.

Take a very basic one : chars and ints, they are essentially the same type, 
and being able to perform arithmetic operations on chars or to compare them 
to ints is a huge help.

-- 
Guillaume.
http://www.telegraph-road.org


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to