<< 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


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

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

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 Thu Apr 18 15:45:29 CDT 2019 using JIRA 4.4#649-r158309.