Hacker News new | past | comments | ask | show | jobs | submit login

Macros for python have been recently proposed [1], and oh boy aren't they ugly!

[1] https://www.python.org/dev/peps/pep-0638/




I'm glad they've finally been proposed, as ugly as they need to be in Python. It's not even about full homoiconicity; a language which is capable of easily understanding its own symbolic representation along with quote/unquote, as opposed to the direct AST representation, is capable of having somewhat bearable macros. See Elixir for a good example, e.g. at https://elixir-lang.org/getting-started/meta/macros.html.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: