|
|
|
|
|
by earenndil
2290 days ago
|
|
I wrote on reddit[1] about why I prefer this over c++: > It's not a technical problem, but a social problem. Yes, I would definitely prefer the c++ RAII (and refcounts would be nice too). If you say 'my project is in c++', that sends a certain message to prospective contributors, about what your priorities and ideals are. It can attract certain kinds of contributors and discourage others. Then you have the problem of how to define your subset of c++. It's easy to say 'no exceptions, no RTTI, no STL'. But there are subtler things. As you mention, templates are occasionally useful. But sometimes they're completely superfluous. Do you allow virtual functions? Multiple inheritance? The answer is almost invariably 'maybe'; you have to exercise taste. I can do that by myself, for my own project. But if I want to be able to accept contributions from others, I need a clearer set of contribution guidelines than 'wherever my whimsy takes me', and for such a purpose 'whatever the c compiler accepts' is the best I can do. > Also, tcc is about 10x faster than gcc and clang, which makes development a joy. 1: https://www.reddit.com/r/programming/comments/f4gb6n/i_made_... |
|
(+) offer not valid on microcontrollers or proprietary C++ compilers