4 ms·
In homoiconic languages like lisp I think you'd need more flexibility than vectors. What if you need to remove an item for example, do you need to shift all re
by terminalcommand 4y ago
In homoiconic languages like lisp I think you'd need more flexibility than vectors.
What if you need to remove an item for example, do you need to shift all remaining items to keep order or mark the removed section with Xs so that the cursor jumps to the next data item.
You need to be able to randomly access bits and pieces to form a network.
- openfuture 4y agoForth is also homoiconic (arguably more so than lisp) and it can be thought of as being purely vectors.
- terminalcommand 4y agoForth's homoiconicity seems to be disputed: https://wiki.c2.com/?HomoiconicityClassification https://wiki.c2.com/?HomoiconicityClassification
- openfuture 4y agoYou could see forth as just netstrings recursively. You evaluate the outermost netstring by unquoting and then doing a forth over the netstrings it contains.