How should i define the param type of console-log?

Your hoot project is just amazing! I enjoyed playing with it a lot!
And about the question, both the following define-foreign works for the given type, but is there a way to combine the string and extern type? :grinning_face_with_smiling_eyes:

(define-foreign console-log
“console” “log”
(ref extern) → none)

(define-foreign console-log
“console” “log”
(ref string) → none)

and How should i define a nested call like event.target.value, it seems that your project only use “xxx” “xxxx” format. :slight_smile:
And at last, your hoot is just awesome!

Hi! WebAssembly’s static type system is quite low-level and there is no polymorphism or overloading. So, there’s no way to combine your two define-foreign calls into one.

Thanks, Though it’s not a big problem, you still answer me with explanation :grinning_face_with_smiling_eyes: