![]() Some users, regardless of how many users, or how beneficial that feature would It is very difficult or impossible to add a feature that would benefit only Python was once described as Python Fits Your Brain,īut that becomes less and less true as more and more features are added.īecause of the high cost of adding a new feature, Harder to learn and harder to understand. Each new feature makes the language larger, Python is now sufficiently powerful and complex, that many proposed additionsĪre a net loss for the language due to the additional complexity.Īlthough a language change may make certain patterns easy to express, ![]() New language features can be controversial, disruptive and sometimes divisive. Providing the ability to extend the language for specific domains withoutĪdding to complexity to the language as a whole. Syntactic macros allow libraries to modify the abstract syntax tree during compilation, With text-based substitution macros, and allows the implementation This reduces the chance of mistranslation that can happen The term “syntactic” means that this sort of macro operates on the program’s This PEP adds support for syntactic macros to Python.Ī macro is a compile-time function that transformsĪ part of the program to allow functionality that cannot beĮxpressed cleanly in normal library code. Long term stability for the bytecode interpreter.Improving the expressiveness of libraries for specific domains.Toggle light / dark / auto colour theme PEP 638 – Syntactic Macros Author : Mark Shannon Discussions-To : Python-Dev thread Status : Draft Type : Standards Track Created : 2 Post-History : 2 PEP 638 – Syntactic Macros | Following system colour scheme Selected dark colour scheme Selected light colour scheme Python Enhancement Proposals
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |