convex
convex copied to clipboard
`schedule*` does not pre-compile code as advertised
In its :doc, schedule* advertises that the given form is expanded and compiled, which is not the case.
(schedule* 0 '(def foo 42))
; ERROR (CAST)
; Cast error: Can't convert argument at position 2 (with type List) to type Op.
; TRACE
; In function: schedule*
Either:
a) Fix :doc
b) Actually pre-compile
Currently compilation happens in the schedule macro to create an Op which schedule* accepts. I think this is the right way to do it (more "fundamental") so will fix the doc.