A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-August/017226.html below:

Inline code in other languages

[Python-Dev] Re: Inline code in other languages [Python-Dev] Re: Inline code in other languagesLars Marius Garshol larsga@garshol.priv.no
23 Aug 2001 10:41:14 +0200
* Barry A. Warsaw
| 
| Slick indeed!  I don't see much that's beyond Python's grasp.  The
| syntax of course would be more Pythonic, [...]

Why not make it import C files, instead of putting them inline? I
guess you very often want to reuse the C functions in several
different places anyway, and you'd mostly want to have includes and
stuff as well.

This way you can also get rid of the MD5-ing and just use ordinary
modification times to figure out what needs to be recompiled.

You can't inline pieces smaller than functions anyway, and to me the
mix between Python and C code looks very ugly.

--Lars M.




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4