4 ms·
Yes, we need that subset. We could call that RC++ (or rC++, like RPython is a reduced Python). What I would put in that subset: - constructors/destructors
by vmorgulis 11y ago
Yes, we need that subset. We could call that RC++ (or rC++, like RPython is a reduced Python).
What I would put in that subset:
- constructors/destructors (RAII)
- auto (type inference)
- class with template arguments (no nesting)
- variadic templates for function parameters
What I would remove:
- virtual
- rtti
- complex templates (nesting)
- no STL (or something new and/or based on POSIX)
- no private/protected in classes (public by default)
- or remove class (only structures)
- operator overloading
- namespaces
- name mangling (a.b gives a_b)
I imagine a good subset as something that Thorvalds could approve and ideally allow in the kernel.