This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-21
Channels
- # announcements (8)
- # babashka (12)
- # beginners (18)
- # biff (25)
- # calva (8)
- # clj-kondo (19)
- # clojure (53)
- # clojure-europe (3)
- # clojure-norway (3)
- # clojurescript (31)
- # emacs (9)
- # fulcro (12)
- # lsp (25)
- # membrane (1)
- # off-topic (58)
- # pathom (11)
- # pedestal (1)
- # proletarian (3)
- # re-frame (6)
- # releases (2)
- # shadow-cljs (7)
I'm (finally) considering removing the default printing behavior from babashka when not invoking -e
, so when invoking a main method, or -x
function, etc there will be nothing printed even if the last value isn't nil
.
Reason being that such functions sometimes print a report to the console and having the result printed to stdout messes with the result. I noticed that with the carve!
example above. Having the final result printed can be avoided by returning nil
but it's not what people are used to from Clojure.
I will keep the printing behavior when people provide bb --prn -x ...
, so the explicit --prn
argument.
This will be a slightly breaking change (sad), but if printing was that important, I think you should have used explicit prn
or println
.
I've logged this as issue https://github.com/babashka/babashka/issues/1467 - feel free to comment there if you have thoughts.
Good choice, makes bb more accessible to newcomers. I hope this doesn't break too many existing consumers (I know I never relied in implicit printing)
The first breaking change with the new print behavior. https://clojurians.slack.com/archives/C099W16KZ/p1674493822604489
Sucks. Interface design is hard
Nice that you had some forward compatibility (--prn was a no-op before)
I guess that's a hickeyan principle as well - prefer open systems (open maps)
Or maybe Postel's law
Invoker of MyBatis migrations a file based native sql migrator from old glorious java time that really works. No ORM, just your jdbc driver which the script downloads and your awesome sql commands https://gist.github.com/geraldodev/f4cc25376331ebd37d2eb8a4d3ccf8a9
Kaocha and eftest compatibility coming up: https://twitter.com/borkdude/status/1616842243318349824 (kaocha) https://twitter.com/borkdude/status/1616886788898885632 (eftest)
https://github.com/weavejester/eftest already runs with the --dev-build
installable via:
bash <(curl ) --dev-build --dir /tmp