3 ms·
Homoiconicity just means that procedures are stored in the same representation in which they are entered, or nearly (modulo tokenization and such). It was defin
by kazinator 9y ago
Homoiconicity just means that procedures are stored in the same representation in which they are entered, or nearly (modulo tokenization and such). It was defined that way by the programmer who coined the term in the 1960's, and is well documented in the Wikipedia.
POSIX shells are homoiconic; you can type set to see all the functions, which are printed in reformatted source code, that you can copy and paste.
That could work in any interpreted language. Classic line number BASIC is homoiconic. You can LIST the lines of code.
A Lisp is useful even if it isn't homoiconic (functions cannot be edited). ANSI Lisp has some loosely defined support for homoiconicity via the ed function. This isn't used much; actual Lisp environments have other means to recall and edit a function definition, such as an IDE with buffers or REPL with history.
The term homoiconic doesn't really "nail it" when it comes to Lisp.