Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fare/fare-mop
General purpose Common Lisp utilities using the Meta-Object Project
https://github.com/fare/fare-mop
Last synced: 17 days ago
JSON representation
General purpose Common Lisp utilities using the Meta-Object Project
- Host: GitHub
- URL: https://github.com/fare/fare-mop
- Owner: fare
- Created: 2016-03-06T23:21:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-06T23:22:15.000Z (almost 9 years ago)
- Last Synced: 2024-12-27T16:06:03.347Z (about 1 month ago)
- Language: Common Lisp
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
fare-mop has a few simple utilities relying on the MOP.
It depends on CLOSER-MOP for portable MOP access.The main utilities are:
SIMPLE-PRINT-OBJECT-MIXIN
class mixin to give you a useful PRINT-OBJECT method for freeSIMPLE-PRINT-OBJECT
a simple PRINT-OBJECT function you can use it without the mixin
(useful when you don't want to change the class hierarchy of
some library you're using, but still want to simply inspect objects
and/or define a PRINT-OBJECT method on them).COLLECT-SLOTS
a utility used by the above function, to collect a p-list
describing the slots bound in an objectSLOTS-TO-PRINT
a way to customize which slots get printed by SIMPLE-PRINT-OBJECT-MIXINOther utilities include:
REMAKE-OBJECT
a utility for "copying" objects by calling make-instance with
the "same" initialization arguments as an original objects,
plus overriding keyword arguments.
Useful for experimenting with a pure functional OO style.
Not for use where performance is important.See documentation strings for details.