summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2022-12-27 19:40:45 -0500
committerDavid Thompson <dthompson2@worcester.edu>2022-12-27 19:40:45 -0500
commit6381de5914df79b2c807c518e9aa04e20125d643 (patch)
tree428f6bde3fb2d2dc5cb67186cdac04ec9dc94ff2
parent8f55532922c116b80cedbf6296fda07adfdb8c13 (diff)
Fix GOOPS post.
Thanks to mfiano on IRC for pointing out the error.
-rw-r--r--posts/2022-10-05-goops-issues.md13
1 files changed, 2 insertions, 11 deletions
diff --git a/posts/2022-10-05-goops-issues.md b/posts/2022-10-05-goops-issues.md
index b0e4266..d4eab3e 100644
--- a/posts/2022-10-05-goops-issues.md
+++ b/posts/2022-10-05-goops-issues.md
@@ -296,17 +296,8 @@ documentation for a generic. One complicating factor is that
`generic-function-name` and `generic-function-methods` are defined in
libguile, which is C, not Scheme. I don't know if this hypothetical
`generic-function-documentation` would have to be in C, too.
-
-In CLOS, methods do not accept documentation strings, only generics
-do. The downside of doing the same is that most code using GOOPS that
-I've seen does not use `define-generic` for every generic procedure,
-because `define-method` will create the generic procedure if needed.
-So, it would mean adding a `define-generic` form for every generic
-function that should be documented. Would it make sense to allow
-documentation strings for methods, too? The documentation for a
-generic could then be the union of its own documentation and any of
-its methods that have documentation. There's probably a reason why
-CLOS doesn't do this and it would be best to understand that first.
+`defmethod` also accepts documentation strings, but Guileā€™s
+`define-method` does not.
## Generics cannot be merged outside of a module