logoalt Hacker News

efficax • yesterday at 2:54 PM • 1 reply • view on HN

the biggest design wart of rust (well one of them) is that support for custom allocators wasn't built into the type system from the start, with allocation osmething that returns Result


Replies

yencabulator • yesterday at 9:53 PM

Sure, but it's worth acknowledging that that specific wart is being fixed.

https://doc.rust-lang.org/std/alloc/trait.Allocator.html