The advantages of using Common Lisp are numerous:

  1. The shape of tensors is not limited to numbers, but can also include symbols and even S-expressions!
  2. Automatic Generation of Iterators, ShapeError, etc.
  3. Works as a Domain Specific Language for Deep Learning embedded in Common Lisp