3 ms·
This just makes the beauty of Rust so much more clear. Compatible C structs without going through this headache. It also points out another reason why Go is not
by bluejekyll 11y ago
This just makes the beauty of Rust so much more clear. Compatible C structs without going through this headache. It also points out another reason why Go is not a "systems" language.
- mahmud 11y agoYou could do that in Common Lisp for about 3 decades now. I remember doing this 10 years ago, from the REPL no less. https://common-lisp.net/project/cffi/manual/html_node/defcstruct.html https://common-lisp.net/project/cffi/manual/html_node/defcst...
- pjmlp 11y agoI never understood why they didn't take the FFI route that Delphi, Pascal dialects, Modula-2, Modula-3, .NET, D, Ada, Rust and many other languages do, for describing bindings to other languages. When I asked about why going cgo instead, the general reaction was "go away we know better", as usual. EDIT: Typo (way => away)