|author||Javier Olaechea <firstname.lastname@example.org>||2020-05-16 23:35:08 -0500|
|committer||Javier Olaechea <email@example.com>||2020-05-16 23:35:08 -0500|
Use keywords to designate XCB types
Otherwise the package the type defined in would have to export the symbol that names the type. It would also hurt discoverability as the user would have to care in which package the type was defined in. On top of that, if they are trying to access the information about a particular type they would either have to import the package or fully qualify the symbol. An alternative design would be to convert the symbols to strings before storing them so we can compare by symbol name. But that would be fighting against the design of the Common Lisp language. Keywords are meant to be used precisely for cases like this.
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xcb/types.lisp b/src/xcb/types.lisp
index 42a94a1..1e59363 100644
@@ -79,9 +79,9 @@
(defmacro define-type-alias (new-type old-type)
`(register-type-alias ',new-type ',old-type))
;; TODO: Check if this alias is according to the spec.