Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's "translate c to rust" in the same way as translating English to Japanese by looking up the kanji for an English word, and replacing it word by word. Why not just generate bindings at that point?


I'm neither recommending to use it, nor saying it's a good quality result. I'm addressing the "you are limited by the language/compiler on what you can do" part, which for real code is not the case in my experience.


Ah, yeah I see your point. I suppose that's a useful shim to having full Rust interop with a pre-existing C codebase as you convert, or if you have a mature lib you just want to include wholesale in Rust.

But yeah bottom line, nowhere does Rustc "stop" you from doing things. Just strongly discourage :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: