Skip to content

Conversation

fstamour
Copy link
Contributor

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

@fstamour
Copy link
Contributor Author

Ok, quick question before I do anything else.

Are you ok with me moving the code into a subfolder (src)?

and, are you ok with me splitting up cluck.lisp?

If so, I'll create 1 or 2 PR just for these changes. And only after I'll try to actually improve the code.

@stylewarning
Copy link
Member

Are you ok with me moving the code into a subfolder (src)?

Yes.

and, are you ok with me splitting up cluck.lisp?

If the split is good, sure.

@fstamour fstamour force-pushed the feat/cleanup branch 2 times, most recently from ec5aaad to 8126023 Compare July 16, 2024 04:28
@fstamour
Copy link
Contributor Author

🐖

Copy link
Member

@stylewarning stylewarning left a 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

@fstamour fstamour changed the title WIP Feat/cleanup Add bits of documentation, small refactors and some formatting (fill-paragraphs) Jul 31, 2025
@fstamour
Copy link
Contributor Author

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants