Python Formatted C Converter (PfCC)
Erik Max Francis
max at alcyone.com
Sun Oct 22 03:33:49 EDT 2000
Alex McHale wrote:
> That is *basically* the way it goes, as it stands. The aim is to
> eventually be able to code something like this:
> ---
> def main( ):
> int x, y = 2, 3
> int w,z
> w,z = 4,5
...
> ---
> You get the idea. The def call will probably be used - as an aide
> in
> prototyping.
This is an extremely bad idea. Python is not C, and C is not Python.
Trying to make one look like the other defeats the purpose of either.
Pray tell, how do you declare a "PythonC" function as returning a value
of a particular type? You have to be able to do it, and pretending like
C can be recast into Python ignores that fact.
C and Python are quite different languages. Don't try to make them the
same, because you are setting yourself up to fail.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ Think twice before you speak to a friend in need.
\__/ Ambrose Bierce
Product's Quake III Arena Tips / http://www.bosskey.net/
Tips and tricks from the absolute beginner to the Arena Master.
More information about the Python-list
mailing list