This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-27
Channels
- # admin-announcements (1)
- # announcements (11)
- # babashka (17)
- # beginners (26)
- # calva (6)
- # cider (2)
- # circleci (1)
- # clojure (41)
- # clojure-dev (1)
- # clojure-europe (31)
- # clojure-france (2)
- # clojure-italy (10)
- # clojure-nl (7)
- # clojure-norway (5)
- # clojure-spec (15)
- # clojure-uk (42)
- # clojurescript (4)
- # code-reviews (12)
- # conjure (10)
- # datalog (2)
- # datascript (15)
- # datomic (37)
- # emacs (1)
- # events (5)
- # fulcro (19)
- # jobs (1)
- # jobs-discuss (9)
- # kaocha (2)
- # luminus (14)
- # meander (4)
- # membrane (39)
- # off-topic (26)
- # other-languages (2)
- # re-frame (13)
- # reitit (6)
- # rewrite-clj (39)
- # sci (6)
- # shadow-cljs (33)
- # test-check (15)
- # vrac (17)
- # xtdb (7)
@borkdude, which is the standard way to add a non-included java class? I am thinking of java.time.format.DateTimeParseException, which is missing in cljc.java-time. Or is it something that can only be done within babashka.impl.classes, unless I require an external clojure project as documented?
@kingcode The only way is to add it to babashka itself or to a pod
Ok Thanks @jeroenvandijk, will look into it.
the namespace babashka.impl.classes
is indeed the place where you have to add the class
It is not available e.g. with
(require '[cljc.java-time.format.date-time-parse-exception])
When looking at the source, that ns has not been provided (as part of the mapping from java.time as documented in cljc.java-time README)I also looked at D3/java-time, but it seems to work completely differently than cljc.java-time, by wrapping its own semantics as a facade around Java…
if the exception is not part of bb, a PR is welcome. since bb supports java.time, the exception type is a good addition
I want my user’s to be able to use a variety of formats and parse them all until one works, and catching each parse exc. by going to the next format