Created
June 29, 2011 19:45
-
-
Save 8th-Light-Blog/1054737 to your computer and use it in GitHub Desktop.
This file contains 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
Blog Title: Clojure Libs and Namespaces: require, use, import, and ns (Part 3) | |
Author: Colin Jones | |
Date: December 5th, 2010 |
This file contains 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
user=> (import 'java.util.Date) | |
nil | |
user=> (Date.) | |
#<date 22 mon cst 20:34:52 2010 nov> |
This file contains 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
user=> (import '(java.util Date GregorianCalendar)) | |
nil | |
user=> Date | |
java.util.Date | |
user=> GregorianCalendar | |
java.util.GregorianCalendar |
This file contains 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
user=> (require 'stuff) | |
nil | |
user=> (import 'stuff.BigWidget) | |
stuff.BigWidget | |
user=> (BigWidget.) | |
#:stuff.BigWidget{} |
This file contains 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
(ns my-great-project.core) |
This file contains 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
(ns my-great-project.core | |
"This namespace is CRAZY!" | |
(:use [clojure.string :only [split join]] :reload) | |
(:require clojure.stacktrace | |
[clojure.test :as test] | |
(clojure template walk) :verbose) | |
(:import (java.util Date GregorianCalendar))) |
This file contains 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
(ns my-great-project.core | |
(:require clojure.stacktrace) | |
(:require clojure.walk)) |
This file contains 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
(ns my-great-project.core | |
(:require clojure.stacktrace | |
clojure.walk)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment