[LAU] OT: C or C++?
nicholas.dokos at hp.com
Thu Oct 14 15:50:01 UTC 2010
Joshua Boyd <jdboyd at jdboyd.net> wrote:
> On Thu, Oct 14, 2010 at 12:10:46PM +1100, Erik de Castro Lopo wrote:
> > If you get serious about programming, its important to
> > know more than just C and C++. For many tasks, garbage
> > collected languages with stricter type systems than C
> > and C++ are a better fit. Langauges like Python, Ruby,
> > Ocaml and Haskell. Even Java!!!
> You say stricter type system, then Python and Ruby in the next
> sentence. Does not compute. ;)
All of these terms tend to be used fairly loosely in practice, so there
is certainly a lot of room for disagreement, but Python, in particular,
has a fairly strict type system. It is dynamic (execution-time)
checking, rather than static (compile-time) checking, but you *will* get
a big, fat exception if you get your types wrong. So it's not quite
such a non-sequitur as you imply. And it's certainly stricter type
checking than e.g. in C.
More information about the Linux-audio-user