Clojure

Typo and/or out-of-place example in clojure.string docstring.

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.3
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code
  • Approval:
    Ok

Description

Clojure String utilities

It is poor form to (:use clojure.string). Instead, use require
with :as to specify a prefix, e.g.

(ns your.namespace.here
(:require '[clojure.string :as str]))

-----------

The quote in the :require clause is erroneous. On the other hand, clojure.string's ns docstring may not be the place for an explanation of use-vs-require, so the whole paragraph could be removed.

Activity

Hide
Fogus added a comment -

Added patch.

Show
Fogus added a comment - Added patch.
Hide
Fogus added a comment -

This is a trivial fix for a docstring that is clearly incorrect. Thanks Phil.

Show
Fogus added a comment - This is a trivial fix for a docstring that is clearly incorrect. Thanks Phil.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: