zig.guide icon indicating copy to clipboard operation
zig.guide copied to clipboard

Zig for C++ programmers

Open kassane opened this issue 4 years ago • 1 comments

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 x comptime)
  • User Type and Type Conversion

kassane avatar Dec 09 '20 13:12 kassane

Id like to see some examples of interacting with C++ structs/classes from zig code.

suirad avatar Jan 19 '21 22:01 suirad