News for hackers. Stuff that matters.
Re:Go generics draft design: building a hashtable by littlestymaar on Thursday June 18, 2020 @12:52PM (#23565003)
Absolutely (well at least for Rust, because for C it's not required for it to compile: the code will compile to some broken garbage that will either crash at runtime, be vulnerable to exploits or burn your hard drive, depending on the mood ;).

I just found surprising to see a core person of Go declaring heap vs stack allocation to be “implementation detail”. Because if it was, that would mean that my carefully crafted zero-alloc code could become full of allocations one day because the underlying implementation changed! Obviously they don't want their users to be afraid of that.

There are no comments on this comment yet.