<< Back to previous view

[CONTRIB-79] Forward-port deprecated 1.1 namespaces Created: 27/Apr/10  Updated: 17/Sep/10  Resolved: 17/Sep/10

Status: Closed
Project: Clojure-Contrib
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect
Reporter: Anonymous Assignee: Stuart Sierra
Resolution: Completed Votes: 0
Labels: None


 Description   

Too many people are doing crazy stuff with conditional loading just to support both 1.1 and 1.2 simultaneously. This way lies madness.

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.

Add a printed deprecation warning at the top-level of each of the old namespaces, like
(println "The foo namespace is deprecated, please use bar instead.")

Post 1.2 release we can remove the deprecated namespaces.



 Comments   
Comment by Assembla Importer [ 17/Sep/10 12:51 AM ]

Converted from http://www.assembla.com/spaces/clojure/tickets/79

Comment by Assembla Importer [ 17/Sep/10 12:51 AM ]

stuart.sierra said: (In revision:a1c66df5287776b4397cf3929a5f498fbb34ea32) Copy deleted/renamed namespaces from 1.1 release; refs #79

  • For backward compatibility with 1.1 release.
  • Namespaces copied: duck-streams, java-utils, seq-utils,
    shell-out, str-utils, str-utils2.
  • These namespaces can be marked as deprecated.
  • They are copied rather than simply aliased because
    some behavior has changed.

Branch: master

Comment by Assembla Importer [ 17/Sep/10 12:51 AM ]

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! , just pointing out that doing so doesn't impact 1.1/1.2 compat.

Generated at Thu Oct 02 05:32:22 CDT 2014 using JIRA 4.4#649-r158309.