Re:Allocgate: Restructuring how allocators work in Zig
by petertodd on Wednesday December 15, 2021 @05:56PM
(#29572635)
Worth noting that even though Rust doesn't let you have two separate pieces of code share responsibility for actually initializing a data structure, in practice that doesn't lead to much, if any, code duplication: a Foo::new() can usually be written as a wrapper around a call to Foo::new_with_options(x, y, z).
[ Parent
| on HN ]
There are no comments on this comment yet.