<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 1: doc strings consistent naming (e.g., "doseq")</title><link>https://sourceforge.net/p/clojure/bugs/1/</link><description>Recent changes to 1: doc strings consistent naming (e.g., "doseq")</description><atom:link href="https://sourceforge.net/p/clojure/bugs/1/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 27 Feb 2008 16:17:42 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/clojure/bugs/1/feed.rss" rel="self" type="application/rss+xml"/><item><title>doc strings consistent naming (e.g., "doseq")</title><link>https://sourceforge.net/p/clojure/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Doc strings should use names that are consistent with argument lists.  As an example, here are the docs for "doseq" in SVN 702:&lt;/p&gt;
&lt;p&gt;user=&amp;gt; (doc doseq)&lt;br /&gt;
-------------------------&lt;br /&gt;
clojure/doseq&lt;br /&gt;
([item list &amp;amp; body])&lt;br /&gt;
Macro&lt;br /&gt;
Repeatedly executes body (presumably for side-effects) with binding-form bound to successive items from coll.&lt;br /&gt;
Does not retain the head of the sequence. Returns nil.&lt;br /&gt;
nil&lt;br /&gt;
user=&amp;gt; &lt;/p&gt;
&lt;p&gt;The arguments refer to "item" and "list", the docs refer to "binding-form" and "coll".  These should be brought into line in this case and in any other cases where they're not in agreement.&lt;/p&gt;
&lt;p&gt;One might also consider a convention (as in emacs) where words that represent literals are distinguished somehow (as in all-caps) so they can be represented in some special way (as in italics) when the doc string is presented by a pretty printer.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;user=&amp;gt; (doc doseq)&lt;br /&gt;
-------------------------&lt;br /&gt;
clojure/doseq&lt;br /&gt;
([item coll &amp;amp; body])&lt;br /&gt;
Macro&lt;br /&gt;
Repeatedly executes BODY (presumably for side-effects) with ITEM bound to successive items from COLL.&lt;br /&gt;
Does not retain the head of COLL. Returns nil.&lt;br /&gt;
nil&lt;br /&gt;
user=&amp;gt; &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stephen C. Gilardi</dc:creator><pubDate>Wed, 27 Feb 2008 16:17:42 -0000</pubDate><guid>https://sourceforge.nete16d74a927ea3a5d67aff1535bd87e91f27850de</guid></item></channel></rss>