What is Expressiveness in a Computer Language

Marshall marshall.spight at gmail.com
Fri Jun 23 18:08:03 EDT 2006


Rob Thorpe wrote:
>
> Can I make a type in C that can only have values between 1 and 10?
> How about a variable that can only hold odd numbers, or, to make it
> more difficult, say fibonacci numbers?

Well, of course you can't in *C*; you can barely zip you pants with C.
But I believe you can do the above in C++, can't you?


Marshall




More information about the Python-list mailing list