Fork me on GitHub
#clojure-nl
<
2020-04-09
>
bbss03:04:04

@borkdude giving sci a spin for replacing bootstrap cljs, working really well so far! One tiny nitpick is that I have to actually pass bindings like js/console.log compared to having access to it with bootstrap, but that's probably a feature not a bug. One issue that I would like to solve is not having sci throw when called with wrong arity. I'm writing a clj wrapper for a JS library, and often in JS library world accessor functions can be called with variadic arguments. Could throw-arity be disabled with a flag perhaps?

bbss04:04:30

I tried to add a flag do disable the variadic args check but I feel like I'm messing about sci too much without understanding consequences. Besides I found out that (fn [f & args]) works and that's fine, slightly different from regular cljs but whatever.

gklijs06:04:15

@hobosarefriends to bad, I'm afraid it wasn't the last one. Had to move stuff myself, so could stay till the end. But can cast ClojureD again now.

Kevin07:04:19

Morning 👋

borkdude07:04:29

@bbss You consider it a feature that JS / CLJS doesn't have arity checking?

borkdude07:04:48

There is a PR to improve JS interop but it's not finished. Maybe you could look at reviewing it. Optimally I'd like to split it in multiple smaller PRs accompanied with unit tests.

borkdude07:04:37

join #babashka for continued discussion on issues with sci

bbss07:04:03

My "feature not a bug" comment was on that sci doesn't include the js/console bindings by default, unlike bootstrap. But I guess that yes, I think it's a feature that you can call a cljs function with the wrong arity, since JS libraries often use that fact.

Kevin10:04:15

@borkdude Edamame is great! Also really cool how you can resolve namespaced keywords

Kevin10:04:07

Only thing I'm wondering about, is why clojure.tools.reader.reader-types decided to start counting cols from 1, instead of 0. Since now it won't work with subs (unless you dec then once of course)

Kevin10:04:27

Edamame will make it so much easier for me to write my editor though 🙂

borkdude11:04:08

@kevin.van.rooijen cool. I guess 1 or 0 is a detail that can be easily accounted for

👍 4
borkdude11:04:10

@skuro Can we view yesterday's presentations somewhere?

skuro11:04:34

@borkdude it took some time for the recording to become available for me, so I actually just started the upload into Youtube

❤️ 4
skuro11:04:03

which also takes a while, so I'll keep an eye on that and ping here and twitter when things are visible

skuro11:04:04

in the meanwhile, I made the video public (anonymously, no google sign in required): https://drive.google.com/file/d/1GFb1oBOjjA262LjzJLNR9qytmVr0xmLK/view?usp=sharing

👍 4
skuro11:04:34

oh! youtube was actually quicker than I thought: https://youtu.be/0YmZYnwyHHc

borkdude11:04:45

awesome 🙂