>>107145567
Yes, but the point is that I could not know that. I'm not a Zig programmer. Googling that type and method lead me to deprecated documentation that wasn't marked as such on the page I landed in and to a guide, bunch of examples and reddit threads, all of which were using this deprecated feature.
Still all of this is irrelevant in the grant scheme of things because my argument was more about the inherit problems of explicit allocations in larger projects not about this specific piece of standard API. It was just used as an example, and even if they changed the approach in the stdlib, it does not fix the fundamental issue that will manifest itself downstream anyway as you keep adding more layers of abstractions in your project.