Clojure-Contrib

Forward-port deprecated 1.1 namespaces

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • 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.

Activity

Hide
Assembla Importer added a comment -

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.

Show
Assembla Importer added a comment - 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.
Hide
Assembla Importer added a comment -

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

Show
Assembla Importer added a comment - 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
Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - Converted from http://www.assembla.com/spaces/clojure/tickets/79

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: