Clojure: Require png-extract doesnt work with []'s? -


why work:

(ns image-test.core      (:gen-class)      (:require (png-extract)                [clojure.string :as string]))  

but fails:

(ns image-test.core       (:gen-class)       (:require [png-extract :as png]                 [clojure.string :as string])) 

i thought [] ok in require. please edify.

(:require (png-extract)) no-op, "succeeding" doing nothing. using parens here means you're starting prefix list, (:require (clojure set string)) require clojure.set , clojure.string; since don't put namespaces after png-extract, it's not requiring @ all. using []s correct, it's failing because there's wrong png-extract namespace: perhaps doesn't exist, or broken in way.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -