Skip to content

Instantly share code, notes, and snippets.

@matstani
Last active December 17, 2015 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matstani/5553626 to your computer and use it in GitHub Desktop.
Save matstani/5553626 to your computer and use it in GitHub Desktop.
Clojureのuseをrequireで置き換える
;; 以下は同じ意味
(use 'clojure.java.io)
(require '[clojure.java.io :refer :all])
;; 以下も同じ意味
(use '[clojure.java.io :only [file]])
(require '[clojure.java.io :refer [file]])
;; nsマクロ内では
(ns helloworld.core
(:require [clojure.java.io :refer :all]
[clojure.string :refer [split]]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment