convex icon indicating copy to clipboard operation
convex copied to clipboard

`schedule*` does not pre-compile code as advertised

Open helins opened this issue 3 years ago • 1 comments

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

helins avatar Feb 22 '22 12:02 helins

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.

mikera avatar Feb 23 '22 08:02 mikera