I'm considering running a babashka questionnaire in December to learn what people are using babashka for, what they find lacking or redundant. If you would like to feature a question in the questionnaire, please respond in thread.
Whether implicit printing of the last evaluation in the script to stdout should be enabled by default
1✔️Thanks. If you don't want this, you can end the script with nil
.
Is the intention that it's a kind of safety net, i.e. "you forgot to do something with this value"?
It's more historical consistency with -e "(+ 1 2 3)"
In a #!
interpreter for a general-purpose language, I don't think there's much precedent for doing it. But then again, many of them aren't functional/expression-based.
I'll include the question
1👍I'm slightly worried that with org.httpkit.client some people will run into the issues that it consumes the entire request / response into memory. I hadn't seen those issues before I added it and people were mostly positive about httpkit. Maybe people don't do huge requests mostly? cc @alekcz360
yeah, for small use cases it's super handy and IMO if you build something big enough that it needs to be optimized you could probably stand to make a clojure project out of it
your image_viewer example is absurdly handy
+1, I'm using it to get JSON payloads from servers, I wouldn't use it to process files etc - we have "big" Clojure for that
makes sense. also big files you can do with babashka.curl as well which won't hold it in memory at once when streaming