Comment

Comment by vindarel

nitpicking, but I am not a fan of the naming. No need of a capital "A" and no need to recall the class name in the accessor names: "var" instead of "a-var" is enough, since yes, we can very well have an accessor "var" for a class "b". "var" is a generic function. So:

    (defclass a ()
      ((var :accessor var)))

    (var *some-a-object*)  ;; => ok

    (defclass b ()
      ((var :accessor var)))

    (var *some-b-object*)  ;; => ok
 
> If we don’t like using car to indicate the head of a list

… then we can use `first` (and second, third… up to 9nth).

---

https://lispcookbook.github.io/cl-cookbook/editor-support.ht...

https://github.com/CodyReichert/awesome-cl

parent vindarel 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton