This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-17
Channels
- # adventofcode (25)
- # announcements (2)
- # babashka (16)
- # babashka-sci-dev (16)
- # beginners (213)
- # calva (15)
- # clj-kondo (126)
- # clj-on-windows (1)
- # cljdoc (5)
- # cljfx (1)
- # cljs-dev (6)
- # clojure (230)
- # clojure-europe (38)
- # clojure-nl (3)
- # clojure-uk (3)
- # conjure (10)
- # core-async (15)
- # cursive (33)
- # fulcro (58)
- # hyperfiddle (4)
- # jobs-discuss (1)
- # kaocha (5)
- # lsp (46)
- # meander (3)
- # off-topic (30)
- # polylith (10)
- # portal (9)
- # re-frame (5)
- # reitit (7)
- # releases (2)
- # ring (17)
- # sci (8)
- # shadow-cljs (6)
- # specter (1)
- # sql (1)
- # testing (9)
- # tools-deps (4)
- # vim (12)
What is my best option in Babashka for creating something that I can customise print-method
for? I’d like to return a tagged literal from the REPL. I understand there’s no deftype
, is defrecord
the best bet for this?
We have an open issue for this here: https://github.com/babashka/babashka/issues/734
Feel free to upvote it.
We do allow to override toString
on defrecords now
Actually, tagged-literal
might work for what I need, and should be compatible with Clojure. TIL!
hey yall! Im loving bb
. I’ve been learning fulcro and a couple of the projects have been using it as a way to start the apps! Im coming from the JS ecosystem and am used to easily creating serverless functions with frameworks like next.js. Im wondering if anyone has a solution for this with nbb
and aws lambdas (or something else) they could point me to
this is probably sci, but i'm not sure how to test that easily atm so i thought i'd ask here first.
$ clj
user=> (defn foo [a b] (prn a b))
#'user/foo
user=> (apply foo [1 2 3])
Execution error (ArityException) at user/eval7940 (REPL:1).
Wrong number of args (3) passed to: user/foo
$ bb
*user=> (defn foo [a b] (prn a b))
#'user/foo
*user=> (apply foo [1 2 2] )
clojure.lang.ArityException: Wrong number of args (3) passed to: clojure.core/apply [at <repl>:2:1]
the ArityException mentions "apply" rather than the function apply is callingThere is an issue for it here: https://github.com/babashka/sci/issues/653 Feel free to upvote