News for hackers. Stuff that matters.
Re:Why Go Can't Try by tialaramex on Monday March 02, 2026 @06:10PM (#47225586)
But that's back to idiom. In this case specifically in Zig a common idiom is to pass an allocator to might-allocate functions such as the growable array push function, while in Rust it would be usual to weld the allocator choice to the type itself with a constructor function e.g. Vec::with_capacity_in.

There are no comments on this comment yet.