murarth / ketos

Lisp dialect scripting and extension language for Rust programs
Apache License 2.0
751 stars 45 forks source link

Implement a way to call a rust function from ketos #24

Closed porky11 closed 7 years ago

porky11 commented 7 years ago

(isn't there already? I didn't find it) This would make it easier to call rust functions, which is especially useful, when they do things, which cannot be done in ketos

murarth commented 7 years ago

There are a few ways of creating a Ketos Value that wraps a Rust function, depending on the type of function you have:

porky11 commented 7 years ago

Cool, so even multiple dispatch is supported. I wouldn't have expected functions in the value module