diff --git a/README.md b/README.md index 67fc44f..6fb8ec9 100644 --- a/README.md +++ b/README.md @@ -31,13 +31,6 @@ To call a method, just write it after the object: ;; => (method object args...) ``` -Slot accessors, and other methods that don't take additional arguments, can be -written without enclosing parentheses: -``` common-lisp -[object get-something] -;; => (get-something object) -``` - Under the hood, this just passes `object` as the first argument to `method`, so you can do stuff like this (I won't kinkshame you, but your coworkers might): ```common-lisp @@ -46,6 +39,13 @@ you can do stuff like this (I won't kinkshame you, but your coworkers might): ;; => (setf (slot-value object 'slot-name) value) ``` +Slot accessors, and other methods that don't take additional arguments, can be +written without enclosing parentheses: +``` common-lisp +[object get-something] +;; => (get-something object) +``` + To access slots directly, use the `:slot` keyword: ``` common-lisp [object :slot slot-name]