<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged docs</title>
<link>https://ask.clojure.org/index.php/tag/docs</link>
<description></description>
<item>
<title>Why clojuredocs is down?</title>
<link>https://ask.clojure.org/index.php/14323/why-clojuredocs-is-down</link>
<description>&lt;p&gt;For two days I am trying to enter &lt;a rel=&quot;nofollow&quot; href=&quot;https://clojuredocs.org/&quot;&gt;https://clojuredocs.org/&lt;/a&gt; from different browsers on different devices, always getting error 502 (bad gateway). Did &lt;code&gt;clojuredocs&lt;/code&gt; migrate somewhere?&lt;/p&gt;
</description>
<category>Other</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/14323/why-clojuredocs-is-down</guid>
<pubDate>Wed, 01 Jan 2025 14:52:55 +0000</pubDate>
</item>
<item>
<title>Dedupe doesn't mention statefullness in docstring</title>
<link>https://ask.clojure.org/index.php/13636/dedupe-doesnt-mention-statefullness-in-docstring</link>
<description>&lt;p&gt;Unlike all other core functions which can return a stateful transducer, &lt;code&gt;dedupe&lt;/code&gt; doesn't mention this in its docstring. E.g. &lt;code&gt;distinct&lt;/code&gt;, &lt;code&gt;drop-while&lt;/code&gt; etc. all say:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Returns a stateful transducer when no collection is provided.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;But &lt;code&gt;dedupe&lt;/code&gt; just says:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Returns a transducer when no collection is provided.&lt;/p&gt;
&lt;/blockquote&gt;
</description>
<category>Docs</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/13636/dedupe-doesnt-mention-statefullness-in-docstring</guid>
<pubDate>Mon, 22 Jan 2024 12:22:44 +0000</pubDate>
</item>
<item>
<title>clojure.math/scalb docstring error</title>
<link>https://ask.clojure.org/index.php/13458/clojure-math-scalb-docstring-error</link>
<description>&lt;p&gt;The docstring for &lt;code&gt;scalb&lt;/code&gt; links to the documentation for &lt;code&gt;nextDown&lt;/code&gt;, presumably just a mistake.&lt;/p&gt;
&lt;p&gt;It links here: &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#nextDown-double-&quot;&gt;https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#nextDown-double-&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But should link here: &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#scalb-double-int-&quot;&gt;https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#scalb-double-int-&lt;/a&gt;&lt;/p&gt;
</description>
<category>Docs</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/13458/clojure-math-scalb-docstring-error</guid>
<pubDate>Sat, 11 Nov 2023 13:08:46 +0000</pubDate>
</item>
<item>
<title>clojure.math/floor docstring error</title>
<link>https://ask.clojure.org/index.php/13417/clojure-math-floor-docstring-error</link>
<description>&lt;p&gt;In the docstring for &lt;code&gt;clojure.math/floor&lt;/code&gt; it says:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;If a is less than zero but greater than -1.0 =&amp;gt; -0.0&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;but that's obviously not true:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(math/floor -0.3)
;; =&amp;gt; -1.0
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I guess it was intended to add that line to the docstring of &lt;code&gt;clojure.math/ceil&lt;/code&gt; but added it to floor by mistake?&lt;/p&gt;
</description>
<category>Docs</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/13417/clojure-math-floor-docstring-error</guid>
<pubDate>Mon, 30 Oct 2023 12:55:24 +0000</pubDate>
</item>
<item>
<title>Document how extend-type can be used to provide default protocol implementation</title>
<link>https://ask.clojure.org/index.php/9950/document-extend-provide-default-protocol-implementation</link>
<description>&lt;p&gt;In ClojureScript one can provide default protocol implementations as follows:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(extend-type default 
  AProtocol (f [] ...))
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is nicely documented in ClojureScript's &lt;code&gt;extend-type&lt;/code&gt; docstring:&lt;/p&gt;
&lt;blockquote&gt;&lt;ul&gt;
&lt;li&gt;default, meaning the definitions will apply for any value,&lt;br&gt;
unless an extend-type exists for one of the more specific&lt;br&gt;
cases below.&lt;/li&gt;
&lt;li&gt;nil, meaning the definitions will apply for the nil value.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;It may worthwhile to &lt;strong&gt;document how one can provide default implementations for protocols in clojure&lt;/strong&gt; as well, by using &lt;code&gt;extend-type&lt;/code&gt; for &lt;code&gt;Object&lt;/code&gt; &amp;amp; &lt;code&gt;nil&lt;/code&gt;, on &lt;code&gt;extend-type&lt;/code&gt; clj docstring. On the website is documented already.&lt;/p&gt;
</description>
<category>Docs</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/9950/document-extend-provide-default-protocol-implementation</guid>
<pubDate>Sat, 19 Dec 2020 19:19:57 +0000</pubDate>
</item>
<item>
<title>What is the big O for clojure operations?</title>
<link>https://ask.clojure.org/index.php/9468/what-is-the-big-o-for-clojure-operations</link>
<description>&lt;p&gt;Hi, I'm new to clojure.&lt;/p&gt;
&lt;p&gt;I have seen that there are some big O on the data structures part. But, is there a place on documentation showing all the big O of the operations in clojure?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
</description>
<category>Docs</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/9468/what-is-the-big-o-for-clojure-operations</guid>
<pubDate>Wed, 15 Jul 2020 18:49:21 +0000</pubDate>
</item>
</channel>
</rss>