kdl-script icon indicating copy to clipboard operation
kdl-script copied to clipboard

Handle Option<&T>

Open Gankra opened this issue 3 years ago • 0 comments

Option<&T> is an important Rust type for FFI, so we need to support it somehow. Easiest way would be to like, hardcode it as ? and let you write ?&T, maybe only let it work with references..?

Another way would be to define "passthrough types" so you could say like "idk what this is but Rust will know what it is". This kinda sucks though, it would make nullable refs a very verbose idiom. Also idk should ptr and &T be nullable in other languages..?

Gankra avatar Oct 15 '22 23:10 Gankra