Fork me on GitHub
#announcements
<
2022-05-01
>
ivana00:05:39

I extracted data inspector from my other more complex projects and created a simple easy-to-use standalone gui data inspection module https://github.com/Ivana-/bb-inspect

simple_smile 2
👍 6
🎉 1
gratitude 1
Jakub Holý (HolyJak)18:05:00

Nice! Excuse my ignorance but how does it compare to Portal and reveal?

ivana20:05:35

Sorry, I didn't use Portal and can't compare. As for Reveal, I touched it long time ago and also may not be accurate for current state of it. Maybe it some users of both can compare and share their impressions? Btw Reveal is a whole cycle visual repl, and my module is only inspector, and may be called from any repl, including Reveal itself 😉

ambrosebs02:05:46

Typed Clojure 1.0.28: New fn type syntax, check unrolled fns

[t/Int :+ :-> Foo] ;; for 1 or more t/Int arguments
[t/Int :? :-> Foo] ;; for 0 or 1 t/Int arguments
(fn ([a] ...) ([a & bs] ...)) ;; check with [t/Int :* :-> Foo]
https://www.patreon.com/posts/65833609

5
👍 7
clojure-spin 1
jean-lopes18:05:54

Hey, can you provide an example using malli?

jean-lopes19:05:05

hmm, I'm looking for an example with anonymous functions (using malli)

ambrosebs19:05:59

oh! that hasn't been implemented yet. you'd need to embed malli schemas inside types. let me think it over.

👍 1
ambrosebs19:05:44

Actually could you explain more what you mean so I'm sure?

jean-lopes20:05:24

Something like this:

(defn test
  {:malli/schema [:=> [:cat :int] :int]}
  [hello]
  (let [my-fn  (fn
                 {:malli/schema [:=> [:cat [:string]] :int]}
                 [hi]
                 (inc hi))]
    (my-fn hello)))

ambrosebs21:05:15

yes, exactly. thanks! is there a malli macro that provides this kind of syntax? perhaps we can analyze that instead.

ambrosebs21:05:37

eg., I know schema has schema.core/fn

ambrosebs00:05:23

Couldn't find one.

grzm23:05:59

Hey, y'all! @borkdude finally prodded me enough to get my babashka-compatible port of Cognitect's aws-api into good enough shape that I'm not too terribly embarrassed to release it: https://github.com/grzm/awyeah-api babashka Kick the tires, and let me know how it goes! Aw, yeah!

☁️ 6
babashka 21
🚀 7