|
|
|
|
|
by tmtvl
479 days ago
|
|
Writing a reader macro that allows for something like... [some-numbers 0]
...to get the first (many programming languages make this mistake, using 0 to refer to the first element of a collection, so we can forgive CL for this) element. But I'm curious how you can write... (object -> slot)
...without getting an error about OBJECT not being a valid function or macro. |
|
The 1962 dated Lisp 1.5 Programmer's Manual already describes a 0 based array feature. Lisp was clearly one of the historic instigators of zero based array, rather than just playing along.