Clojure

Improve errors for "use"/"require" in REPL

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.2
  • Component/s: None
  • Labels:
    None
  • Approval:
    Ok

Description

in the repl when i (use 'foo) vs. (use :foo) they both return nil, so it doesn't help me know that the former is right and the latter isn't. would it be sensible for use to return true or something more positive than nil if it successfully brings in a namespace? or print out an error message when symbols are used?

Activity

Hide
Assembla Importer added a comment -

timothypratley said: [file:bKJkksdv8r34IaeJe5afGb]: check for a valid argument

Show
Assembla Importer added a comment - timothypratley said: [file:bKJkksdv8r34IaeJe5afGb]: check for a valid argument
Hide
Assembla Importer added a comment -

timothypratley said: Please note, patch throws an exception if nothing specified to load,
in the use case, :foo is a keyword not a valid load target.

Show
Assembla Importer added a comment - timothypratley said: Please note, patch throws an exception if nothing specified to load, in the use case, :foo is a keyword not a valid load target.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: