WARDuino icon indicating copy to clipboard operation
WARDuino copied to clipboard

Typechecking callbacks

Open tolauwae opened this issue 2 years ago • 1 comments

Runtime typechecking of the callbacks: do we do this in the callback handling system or in the primitives?

tolauwae avatar Sep 16 '22 13:09 tolauwae

I propose the primitives because then we just need to type check once: during the call to subscribe_interrupt. Whereas during the callback handling, we would then have to typecheck before handling the events which I believe occurs much more.

Unless it is possible to overwrite in Wasm a table entry to point to another function that has another type signature but I don't think that such thing is possible in Wasm.

carllocos avatar Apr 14 '23 15:04 carllocos