Skip to content

Comment on Don't Forget to Flush by Andrew Kelley [video]parent

Comments

Afaik the new recommended pattern is to have “unmanaged” apis so structs don’t keep allocators inside but take it in every function call.

Passing an extra argument for allocator is fine in my experience, it doesn’t really take much time to write it down and it is nice to be able to see if a function does allocation from it’s signature alone

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.