Re: [LAU] OT: C or C++?

From: R. Mattes <rm@email-addr-hidden-freiburg.de>
Date: Thu Oct 14 2010 - 19:39:38 EEST

On Thu, 14 Oct 2010 10:55:43 -0500 (CDT), Gabriel M. Beddingfield wrote
> On Thu, 14 Oct 2010, Nick Dokos wrote:
>
> > is certainly a lot of room for disagreement, but Python, in particular,
> > has a fairly strict type system. It is dynamic (execution-time)
>
> So how do I, in Python, declare that variable 'foo'
> must only ever be an integer. Then, when my program
> accidentally tries to assign a string, unicode string,
> tuple, list, or class instance -- I want it to throw a
> compile-time error.
  ^^^^^^^^^^^^^

Read careful, Nick explicitly wrote 'dynamic' (execution time) ...
Don't confuse 'static typing' with 'strong typing'.
Most, if not all, modern "scripting" languages have far more
typechecking than POC.

> How do I do that?

In the (possible) absence of a compiler you don't,

 HTH Ralf Mattes
 
> -gabriel
>
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user@email-addr-hidden
> http://lists.linuxaudio.org/listinfo/linux-audio-user

--
R. Mattes -- Systemeinheitsstreichler
Hochschule fuer Musik Freiburg
rm@email-addr-hidden-freiburg.de
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Fri Oct 15 00:15:03 2010

This archive was generated by hypermail 2.1.8 : Fri Oct 15 2010 - 00:15:03 EEST