C++ to Zig retrospective #33
Replies: 1 comment 6 replies
-
|
Hi! I am overall very happy with the language. Here are the main things I appreciate from Zig:
Probably the features I miss the most are:
Some annoyances (compiler errors, as far as I know the Zig compiler does not have warnings):
In C++ I was always going to cppreference to check for corner cases, etc.
And Zig has few features but they're kind of orthogonal: no overlap and they compose together really well. Don't get me wrong, I love C++, but these are some nice things that I am not sure I can live without, unless I am doing dlib stuff. Regarding the breaking changes of the language due to it not being stable yet:
Today I just wrote this, which I think it's kind of amazing to simplify the test for color space conversion: All my color types have methods to convert to other types: e.g.: The code belows does this:
This kind of stuff is a nightmare in C++. Lines 378 to 452 in 6f6992b |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Out of interest, has the transition from c++ to zig paid off? Has it helped developer experience, robustness, performance, etc? Has it eliminated a source of bugs? Just curious
Beta Was this translation helpful? Give feedback.
All reactions