<< Back to previous view

[CLJ-1213] consistency with def and Unbound Created: 29/May/13  Updated: 03/Sep/13  Resolved: 03/Sep/13

Status: Closed
Project: Clojure
Component/s: None
Affects Version/s: Release 1.5
Fix Version/s: None

Type: Defect Priority: Minor
Reporter: Trevor Wennblom Assignee: Unassigned
Resolution: Declined Votes: 0
Labels: None


 Description   

In this example I'd expect `b` to return `Unbound` for consistency.

Clojure 1.5.1
user=> (def a "MyA")
#'user/a
user=> (def a "MyA2")
#'user/a
user=> (def b "MyB")
#'user/b
user=> (def b) ;; unbound b
#'user/b
user=> (def c) ;; unbound c
#'user/c
user=> a
"MyA2"
user=> b
"MyB"
user=> c
#<Unbound Unbound: #'user/c>


 Comments   
Comment by Alex Miller [ 03/Sep/13 9:27 AM ]

The docstring for def states that the init? function is optional and that in the case where it is omitted, the root binding is unaffected.

Generated at Sat Aug 23 14:07:57 CDT 2014 using JIRA 4.4#649-r158309.