Skip to content

Conversation

@val314159
Copy link
Contributor

  • adds in listening-p function
  • fix typo in demo code

Copy link
Owner

@joaotavora joaotavora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. It's a good idea but please keep the comment inside the helper function you introduced.

(defun control-frame-p (opcode)
(plusp (logand #x8 opcode)))

(defun listening-p (acceptor)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment that I had written above still applies here. We're still using an implementation detail. So please copy the comment here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I stuck a documentation string in here. does that work?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really. Docstrings are about the external interface of a function. They whould exist and in this case should be.

Tell if the server ACCEPTOR is in a listening state.

Or

Return non-nil if server ACCEPTOR in listening state.

This is really a FIXME comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about that? (or maybe you want it at the end of the DEFUN line or the line after?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added in the DOCSTRING as well

@val314159 val314159 force-pushed the feature-add-util-listening-p branch from 0204117 to 3318ba1 Compare April 19, 2021 01:52
change incorrect DOCSTRING to a comment
added proper DOCSTRING as suggested
@val314159
Copy link
Contributor Author

  • now the offending string is a comment again
  • put in a cool DOCSTRING

@hanshuebner
Copy link
Collaborator

Let's add listening-p to Hunchentoot's acceptor interface then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants