One would be a way to automatically clean up resources. Maybe something like “defer” in Go.
I wonder if templates would fit into C. STL is super useful.
A real string type would be good too.
One would be a way to automatically clean up resources. Maybe something like “defer” in Go.
I wonder if templates would fit into C. STL is super useful.
A real string type would be good too.
To be perfectly honest (and I'm just a hobbyist who writes simple tools for myself... so I can get away with this a little easier than a professional could) but I got really frustrated when I was learning C++ and almost decided it wasn't worth it. Then I decided that I'd basically just treat C++ as C with strings, classes, and a few nifty, ready-made containers and useful algorithms. And doing this allowed me to enjoy the language quite a bit and do some very fun and useful things in it, all without becoming overwhelmed by its size/complexity. But again... this is as a hobbyist, nothing more.
It's exception semantics are very similar to Go, but unlike Go, you have to handle the error. It has constructs like `defer` and `errdefer` which allow you do clean up at the end of the scope or on exception respectively. It has support for Generics and Metaprogramming without having to resort to preprocessor macros.
It just released v0.6.0 and is actively in development with an engaging and helpful community.[2]
[1]: https://ziglang.org/ [2]: https://github.com/ziglang/zig/wiki/Community