Fork me on GitHub
#nbb2021-08-12
>
Steffen Glückselig11:08:12

Hi there! I am eager to playing around with ink. I don't understand what the :>is doing in the example given on the github-page for nbb... Pointers would be appreciated.

borkdude11:08:31

:> is a Reagent way of saying that you want to render a React component with JS args

Chris McCormick12:08:38

nbb + ink + rot.js = cljs roguelike. seems like a match made in heaven.

borkdude12:08:45

looking forward to an example...

mauricio.szabo17:08:47

@borkdude what do you think about this: https://github.com/mauricioszabo/tbd/blob/deref-promises/test/nbb/main_test.cljs#L143-L150 ? It's an idea to make deref await for promises (it makes them seem sync). I know that the current implementation I did is probably too slow (as sci.impl.analyzer/return-call is a generated code so that it's faster for multiple arities, I suppose for performance reasons), but maybe we can find a way to make it faster if you think it's a good feature to have 🙂

mauricio.szabo18:08:18

Opening up another thread about the check library 🙂