Javier Pollak
2018-02-11 18:37:45 UTC
I'm working a porting the guile C library to Rust and I'm having some
trouble porting foreign objects in a type-safe at compile-time way.
Knowing all the slot types at compile-time is very tricky to accomplish in
this case and it would be a lot
easier to just have one slot filled in with a rust tuple to accomplish the
same behaviour as multiple slots.
Is there any advantage to/ difference with using multiple slots in foreign
objects?
the project is currently hosted on GH:
http://github.com/tim-editor/guile-rs/
trouble porting foreign objects in a type-safe at compile-time way.
Knowing all the slot types at compile-time is very tricky to accomplish in
this case and it would be a lot
easier to just have one slot filled in with a rust tuple to accomplish the
same behaviour as multiple slots.
Is there any advantage to/ difference with using multiple slots in foreign
objects?
the project is currently hosted on GH:
http://github.com/tim-editor/guile-rs/