From 9535f8c6ab042b8b572b31dd2a1ad5bbd0255ca7 Mon Sep 17 00:00:00 2001 From: ~keith Date: Thu, 25 Nov 2021 22:32:33 +0000 Subject: [PATCH] oopsie that paragraph should have been before the other one --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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]