Closed aartaka closed 12 months ago
Do we have any other alias in the library? What justifies its addition?
Do we have any other alias in the library? What justifies its addition?
We have alias macros for convenience:
defgeneric*
for define-generic
.defclass*
for define-class
defcondition*
for define-condition*
.make*
for make-instance*
.So yes, providing aliases for user's convenience is consistent with existing practices. I mean, nclasses
is a convenience-first library, always was.
Those aliases are of a different nature, as those symbols are exported from the library.
Those aliases are of a different nature, as those symbols are exported from the library.
Fair, closing then.
This adds a new keyword to
define-generic
.:export
is an alias for:export-generic-name-p
and provides the same functionality in a shorter form. It's also consistent withdefine-class
slot:export
option. So we can have our cake and eat it::export-generic-name-p
is consistent with:export-accessor-names-p
etc.:export
is consistent with slot:export
option.That'll also save us some typing in Nyxt, as part of the move to nclasses that I'm working on.