-
Notifications
You must be signed in to change notification settings - Fork 1
Add bits of documentation, small refactors and some formatting (fill-paragraphs) #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Ok, quick question before I do anything else. Are you ok with me moving the code into a subfolder ( and, are you ok with me splitting up If so, I'll create 1 or 2 PR just for these changes. And only after I'll try to actually improve the code. |
Yes.
If the split is good, sure. |
ec5aaad
to
8126023
Compare
🐖 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just some early comments
@stylewarning There, this MR should be good to merge I think |
- add docstring to the package "cluck/examples/cas" - ran emacs' "fill-paragraph" on some (all?) docstrings and comments - clean up the functions "e-graph-print" and "e-graph-plot-dot" - extract function "warn-if-dirty" - remove argument "e-node-car-to-printable" - replace a loop+format+print-to-string with a one format - use "second" instead of "cadr" - tweak format ~d -> ~D and nodes -> node~:P - when not => unless - reduced nesting and indentation with small refactors in: - defmethod initialize-instance :after ((pattern graph-pattern) &key) - defun check-graph-binding
apart from the obvious move into src/ and split, I removed the function "prin1-e-node-to-string" and I might have broken something doing that. I didn't test yet.
I also extracted a function
warn-if-dirty