core-typed

J 2022-06-06T13:33:11.799869Z

Hi, what the way to deal with this error: (use typedclojure with malli)

2022-06-06T16:31:36.863959Z

We need an annotation for update, it's missing in typedclojure.

2022-06-06T16:37:18.819399Z

This is a case where we could use finer grained backdoors to the type system. The current workaround is to use (t/ann ^:no-check ...) on the var/s that contain update

2022-06-06T16:38:50.433769Z

possibly something like (^::t/unchecked-fn update ...) so the args are checked but not the application itself.

2022-06-06T16:43:07.047159Z

Try this as a workaround in https://github.com/typedclojure/typedclojure/blob/main/CHANGELOG.md#1030-20220504:

(^{::t/unsafe-cast t/Nothing} ^::t/ignore update ...)

2022-06-06T16:47:56.502699Z

Longer term, we need to convert the annotation for assoc into one for update https://github.com/typedclojure/typedclojure/blob/700d882ef7e004cc2908b55bef54cf715d7863e8/typed/lib.clojure/src/typed/ann/clojure.cljc#L1154-L1158

👍 1
J 2022-06-06T17:29:49.393739Z

Thank @ambrosebs for your answers. I will try that.