zig.guide
zig.guide copied to clipboard
Zig for C++ programmers
Based on the requested proposal: #46
I would like to ask, either as an extra chapter or as an extension of the initial proposal, an explanation about the differences and equivalence for modern c++ programmers, emphasizing:
- Zero Cost Abstraction
- Allocators & pointers
- Strings handling
- Conteiners: Map, Tuple, List, ...
- Generic Programming
- Anonymous functions and functors
- Error handling (exception x error code)
- Object Oriented Programming
- Namespaces
- Compile time (
constexpr
xcomptime
) - User Type and Type Conversion
Id like to see some examples of interacting with C++ structs/classes from zig code.