HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by maattdd | Hacker News Reader
Parent
Full thread
maattdd
·
How do you create recursive data structure on the stack?
View on HN
rightbyte
·
Using pointers to the stack?
maattdd
·
Pointers to stack sound like a recipe for disaster (all those pointers will be dangling very very soon).
softwaredoug
·
I’d argue it’s safer to have the paradigm of “i own stuff then delegate it you” (ie down the stack) then the non hierarchy chaos the heap invites
Reply on news.ycombinator.com