|
|
|
|
|
by jstimpfle
2563 days ago
|
|
Seriously, all these language mechanisms like RAII make it a lot harder to write modular code. Look at the mess that C++ got itself in, with its constructors, default constructors, move constructors, rvalue references, exceptions (required as a consequence of constructors), and what not. It's hard to believe Rust could make it significantly less painful. Programming is mostly not about initialization and deinitialization. If it is, you're doing it wrong, you have too many small objects. Yes, stack allocated STL containers can be nice for quick "scripting". But I will happily write a few function local deinitialisations to enjoy much less convoluted and interdependent, slowly compiling code. |
|