This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-04
Channels
- # announcements (13)
- # babashka (19)
- # beginners (74)
- # boot (1)
- # calva (5)
- # clj-kondo (22)
- # clojure (46)
- # clojure-android (3)
- # clojure-dev (4)
- # clojure-uk (69)
- # clojurescript (19)
- # community-development (17)
- # cursive (27)
- # datomic (9)
- # emacs (13)
- # graalvm (2)
- # instaparse (4)
- # luminus (1)
- # off-topic (21)
- # reagent (6)
- # remote-jobs (1)
- # ring-swagger (4)
- # test-check (49)
- # vrac (1)
If I use a fully qualified ns like (
clj-kondo warns with Unresolved namespace
but its fine with (clojure.string/split ...)
. Is this problem?
You are always supposed to add a require
even if it works, since you should not rely on a namespace already being loaded elsewhere
but arent namespaces like
and clojure.string
are loaded by default?
e.g. if clojure.spec loads clojure.string, you're lucky, but if spec doesn't you're not. it's an implementation detail
i mean i can do a (
in a plain REPL without requiring, it still means something else has loaded it?
yeah, maybe your REPL tooling or Clojure main has, but that doesn't mean it will still have been loaded in a compiled artifact for example
ah, good to know. thanks! 😄
shouldn't it warn for clojure.string too? just to be consistent? this diff is what bothered me in the first place
okay somethings up with my editor then :thinking_face:
ah now i see it
long back there is a require
thanks anyways 🙂