Hacker News new | ask | show | jobs
by steveklabnik 3 days ago
You can allow pointers to the stack, but then you have to do the lifetime analysis to make sure they aren't invalidated due to needing to live longer than your stack does, and promote to the heap in this case.

It's not that these problems are insurmountable, it's that this was presented as something that simplifies things, but this solution isn't exactly simple.