|
|
|
|
|
by pod_krad
536 days ago
|
|
>The idiomatic way to handle that is with some combination of `defer` and `errdefer`. Then, in code, there are no lines between alloc/free, and if a try would exit before the free then you would instead first free anyway. Do I understand correctly, that talking about idiomatic way is the same as talking about programming style, but not about language semantic? |
|