3 ms·
Zig's comptime is an addition. You don't have to use it. And some C-macros may translate quite cleanly to it. OTOH going from C++ (OO) to Rust (not OO, borrow
by cies 8mo ago
Zig's comptime is an addition. You don't have to use it. And some C-macros may translate quite cleanly to it.
OTOH going from C++ (OO) to Rust (not OO, borrow checker) is a big leap.
- pjmlp 8mo agoNot all C++ is OOP, and Rust does support OOP as per CS literature, so much so that I have had no issues rewriting Raytracing Weekend tutorial from C++ into Rust, while keeping the same OOP architecture from the tutorial.