- cross-posted to:
- [email protected]
- [email protected]
- cross-posted to:
- [email protected]
- [email protected]
Python is memory safe? Can’t you access/address memory with C bindings?
Python is memory safe? Can’t you access/address memory with C bindings?
Lol okay. Here are some concrete examples I don’t have:
Templates as basic generics
Templates for metaprogramming
Safe union types
Error handling
std::expected
eventually approved, similar to Rust’s Result type, but with no equivalent to the ‘?’ operator to make the code readablestd::expected
has even stabilised, but will probably not be available for 10 yearsSubtype polymorphism deprecated
References
auto
variable in a template, and instead of giving a helpful type error it implicitly coerced a new copy of my vast memory buffer into existence