3 ms·
Fully agree – homoiconicity ends up being almost more of a standard library feature rather than an essential part of the core language. For example, how does th
by StefanKarpinski 13y ago
Fully agree – homoiconicity ends up being almost more of a standard library feature rather than an essential part of the core language. For example, how does the existence of Python's ast module [1] not make Python homoiconic? The main difference, it seems, is how much the language lets you leverage having a representation of code as data to generate code, e.g. with macros. There are projects like macropy [2], but the core Python language doesn't provide macros – although I can't really fathom why at this point since most of the features are there.
[1] http://docs.python.org/3/library/ast.html http://docs.python.org/3/library/ast.html
[2] https://github.com/lihaoyi/macropy https://github.com/lihaoyi/macropy