Hacker News new | ask | show | jobs
by steveklabnik 4084 days ago
Well, it depends. I mean, generally, you want to give flexibility to your users. Maybe I _do_ want to stack allocate an ExpensiveStruct for some reason. You can always Box the struct to have it on the heap.