Repository Pattern with Hygienic Macros in Scheme – Lisp

4 points by jjba23


manuel

Article could be improved by quickly explaining what the "Repository Pattern" is or linking to an explanation.

flockofbirbs

I don't really understand the significance of this. I've never heard of the repo pattern but this seems to be just a record type with a dispatch table and a very simple syntax-rules macro to reduce boilerplate for defining procedures that use that dispatch table. Both of these things are quite common in Scheme programs. Also, the define-repo-method macro doesn't optimize for common arities (1, 2, 3, etc.) so every call allocates an args list.