WetHat💦 on Nostr: Homoiconic #Python. A homoiconic programming language does not distinguish code from ...
Homoiconic #Python.
A homoiconic programming language does not distinguish code from data. This is a feature #Lisp is famous for and was used to implement itself. The article shoes how to implement a Lisp like language based on Python lists using Python's code == data feature.
Lisp: (f (g x))
Python: ['f', ['g', ['x']]]
https://aljamal.substack.com/p/homoiconic-python
#ProgrammingLanguage #compsci #ComputerScience #LispLang
A homoiconic programming language does not distinguish code from data. This is a feature #Lisp is famous for and was used to implement itself. The article shoes how to implement a Lisp like language based on Python lists using Python's code == data feature.
Lisp: (f (g x))
Python: ['f', ['g', ['x']]]
https://aljamal.substack.com/p/homoiconic-python
#ProgrammingLanguage #compsci #ComputerScience #LispLang