LWN.net Logo

Python 3.0 released

Python 3.0 released

Posted Dec 6, 2008 18:29 UTC (Sat) by nix (subscriber, #2304)
In reply to: Python 3.0 released by liljencrantz
Parent article: Python 3.0 released

Useful Lisp-like macros without a Lisp-like syntax is going to be very
painful to design. I wish you luck, but without much hope.


(Log in to post comments)

Python 3.0 released

Posted Dec 7, 2008 10:12 UTC (Sun) by liljencrantz (subscriber, #28458) [Link]

Thank you for the wellwishes. :)

But yes, the simple structure of Lisp obviously makes it much easier both to implement a macro system and to use it for creating new code. Just the simple little addition of static typing makes writing macros significantly harder.

On the other hand, people have been doing some impressive things by using C++ templates for metaprogramming, and that is a significantly more anemic and archaic interface than what I have planned.

My plan is that regular projects will very rarely contain custom macros, they should mostly be used for extending the language to provide features like enums, python-style with-statements, etc..

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds