3 ms·
It seems like this should work so long as popular libraries support both modes. That should be easier to do in Zig, but if there is a popular library that can o
by skybrian 6y ago
It seems like this should work so long as popular libraries support both modes. That should be easier to do in Zig, but if there is a popular library that can only support one mode or the other, or worse, two popular libraries that only support opposite modes, it will constrain any downstream dependencies as well, and you have colored functions again.
But will you get an error at compile time, or will the system just deadlock?
This might be something that just needs to be handled socially, by convention, much like you're not supposed to use too much unsafe code in Rust, and you should make sure that public API's are safe.