Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What’s up with the Allocator API? Then it could be Vec::push<Allocator>(..), giving it an always-failing one for example.


Vec::push<Allocator>(..) makes no sense, the Allocator is a parameter to the Vec type.


That’s what I meant to write


OK and... ? What purpose does an always-failing allocator for Vec have? I guess maybe it's useful for some unit testing cases, but otherwise it seems pointless.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: