3 ms·
> error handling in Go is convoluted Is it worse than in C that there is no concept at all? Is it better that everyone is on their own to do it their own way e
by SV_BubbleTime 5y ago
> error handling in Go is convoluted
Is it worse than in C that there is no concept at all? Is it better that everyone is on their own to do it their own way every time?
I’m not above making the eaiser, but to your point when I see their example of:
double* q = malloc(something);
defer [qp = &q]{ free(*qp); };
That doesn’t look like the C that I know.
- pjmlp 5y agoThe C you will get to learn is also planning to have lambdas, and they are being based on C++ design rather than Apple's blocks, so the example assumes they will also be in C2X.