Clojure JIRAhttp://dev.clojure.org/jira
This file is an XML representation of an issueen-us4.464925-07-2011[CONTRIB-79] Forward-port deprecated 1.1 namespaceshttp://dev.clojure.org/jira/browse/CONTRIB-79
Clojure-Contrib<p>Too many people are doing crazy stuff with conditional loading just to support both 1.1 and 1.2 simultaneously. This way lies madness.</p>
<p>To avoid this, lets forward-port all the 1.1 namespaces that were removed or renamed in master, e.g. duck-streams, seq-utils, str-utils, etc. Just copy the old files from the 1.1 branch, so that no behavior changes.</p>
<p>Add a printed deprecation warning at the top-level of each of the old namespaces, like<br/>
(println "The foo namespace is deprecated, please use bar instead.")</p>
<p>Post 1.2 release we can remove the deprecated namespaces.</p>CONTRIB-79Forward-port deprecated 1.1 namespacesDefectClosedCompletedStuart SierraNoneTue, 27 Apr 2010 00:29:00 -0500Fri, 17 Sep 2010 00:51:00 -0500Fri, 17 Sep 2010 00:51:00 -050000<p>Converted from <a href="http://www.assembla.com/spaces/clojure/tickets/79">http://www.assembla.com/spaces/clojure/tickets/79</a></p><p>stuart.sierra said: (In <a href="http://github.com/clojure/clojure-contrib/commit/a1c66df5287776b4397cf3929a5f498fbb34ea32">revision:a1c66df5287776b4397cf3929a5f498fbb34ea32</a>) Copy deleted/renamed namespaces from 1.1 release; refs #79</p>
<ul>
<li>For backward compatibility with 1.1 release.</li>
<li>Namespaces copied: duck-streams, java-utils, seq-utils,<br/>
shell-out, str-utils, str-utils2.</li>
<li>These namespaces can be marked as deprecated.</li>
<li>They are copied rather than simply aliased because<br/>
some behavior has changed.</li>
</ul>
<p>Branch: master</p><p>cemerick said: FWIW, the various signature and fn name changes between 1.1 and 1.2 still need to be unraveled by any codebase that wants to target both, and choosing which impl to use is still easiest by eagerly loading whereever the new impls are in a try/catch. I'm not arguing against restoring the old namespaces (at the moment! <img class="emoticon" src="http://dev.clojure.org/jira/images/icons/emoticons/smile.gif" height="20" width="20" align="absmiddle" alt="" border="0"/>, just pointing out that doing so doesn't impact 1.1/1.2 compat.</p>Global Rank