Last active
December 17, 2015 04:49
-
-
Save matstani/5553626 to your computer and use it in GitHub Desktop.
Clojureのuseをrequireで置き換える
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
;; 以下は同じ意味 | |
(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