Last active
August 29, 2015 14:07
-
-
Save nasser/800e4bde780067cdef14 to your computer and use it in GitHub Desktop.
shadowing in clojure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(import java.text.DateFormat) | |
java.text.DateFormat | |
user=> (DateFormat/getInstance) | |
#<SimpleDateFormat java.text.SimpleDateFormat@a9427c06> | |
user=> (let [DateFormat "foo"] (DateFormat/getInstance)) | |
(let [DateFormat "foo"] (DateFormat/getInstance)) | |
#<SimpleDateFormat java.text.SimpleDateFormat@a9427c06> | |
(let [DateFormat "foo"] (. DateFormat getInstance)) | |
#<SimpleDateFormat java.text.SimpleDateFormat@a9427c06> | |
user=> ((fn [DateFormat] (. DateFormat getInstance)) "foo") | |
#<SimpleDateFormat java.text.SimpleDateFormat@a9427c06> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment