Python Macros: Use Cases?

后端 未结 17 2426
甜味超标
甜味超标 2021-01-30 18:37

If Python had a macro facility similar to Lisp/Scheme (something like MetaPython), how would you use it?

If you are a Lisp/Scheme programmer, what sorts of things do y

17条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-30 18:42

    I'd use it to wrap yield to enable me to build more powerful generator pipelines.

提交回复
热议问题