-
Notifications
You must be signed in to change notification settings - Fork 69
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
[doc] Fix #1300. Document with-input-to-string and with-output-to-string macros #1554
Conversation
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.
Looks good, after a few minor fixes.
write-element(stream, 'k'); | ||
end; | ||
|
||
The symmetric macro :macro:`with-input-to-string` creates a |
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.
"to" should be "from" here.
:parameter stream-name: A Dylan variable-name *bnf*. | ||
:parameter string-expression: A Dylan string expression *bnf*. | ||
:parameter classname: A Dylan class. | ||
:parameter body: A Dylan body *bnf*. |
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.
A couple of consistency issues:
- The examples use "name" but the parameter is
stream-name
. classname
should use a hyphen to matchstream-name
and Dylan naming style in general.
.. macro:: with-output-to-string | ||
:statement: | ||
|
||
Provides a convenient way of returning a :class:`<string>` after |
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.
For names that are exported from the dylan
module (i.e., defined in the DRM) use :drm:
instead of :class:
. (There are a few other places where this needs to be fixed.)
:parameter stream-name: A Dylan variable-name *bnf*. | ||
:parameter body: A Dylan body *bnf*. | ||
:value string: Instance of :class:`<string>`. | ||
: |
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.
Extra colon?
Co-authored-by: @cgay
…ing macros (dylan-lang#1554) Document macros `with-input-to-string` and `with-output-to-string` Co-authored-by: @cgay
Document macros
with-input-to-string
andwith-output-to-string