Clojure

*file* returns "NO_SOURCE_PATH", but the doc says it should be nil

Details

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

Description

According to http://clojure.org/api, *file* should return nil in the repl, but it returns "NO_SOURCE_PATH".

This has been true for a long time. Latest patch changes only the docstring of *file* to accurately reflect current behavior.

Activity

Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - Converted from http://www.assembla.com/spaces/clojure/tickets/196
Hide
Colin Jones added a comment -

I think this is a pretty trivial docstring fix - "NO_SOURCE_PATH" has been the default value of file since 3dd4c1cf18ea8456b5b4aec607cd54ecfdd85eea (April 2009).

Show
Colin Jones added a comment - I think this is a pretty trivial docstring fix - "NO_SOURCE_PATH" has been the default value of file since 3dd4c1cf18ea8456b5b4aec607cd54ecfdd85eea (April 2009).
Hide
Andy Fingerhut added a comment -

Colin's patch still applies cleanly to latest master as of Feb 24, 2012.

Show
Andy Fingerhut added a comment - Colin's patch still applies cleanly to latest master as of Feb 24, 2012.
Hide
Stuart Sierra added a comment -

Docstring only. Screened.

Show
Stuart Sierra added a comment - Docstring only. Screened.
Hide
Stuart Sierra added a comment -

Rescreened. Still applies on latest master.

Show
Stuart Sierra added a comment - Rescreened. Still applies on latest master.
Hide
Rich Hickey added a comment -

I'd rather promise nothing than promise this forever.

Show
Rich Hickey added a comment - I'd rather promise nothing than promise this forever.
Hide
Colin Jones added a comment -

The second patch avoids promising the return value. For clarity, it does mention the lack of guarantee instead of omitting any mention.

Show
Colin Jones added a comment - The second patch avoids promising the return value. For clarity, it does mention the lack of guarantee instead of omitting any mention.
Hide
Christopher Redinger added a comment -

Patch applies cleanly and makes documentation more correct.

Show
Christopher Redinger added a comment - Patch applies cleanly and makes documentation more correct.

People

Vote (2)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: