Arc Forumnew | comments | leaders | submit | arnoooooo's commentslogin
1 point by arnoooooo 5788 days ago | link | parent | on: This would make my programs shorter.

I never liked the array and hash accessors in CL, so I use a reader macro to access hash/sequence elements, and call functions stored in value slots :

   {sequence 1} -> (elt array 1)
   {sequence 1 2} -> (subseq sequence 1 2)
   {hash 'test} -> (gethash 'test hash)
   {function 2} -> (funcall function 2)
I can also do

  (setf {sequence 1} 2).

-----