Re:The Logical Disaster of Null
by lmm on Thursday May 10, 2018 @08:16AM
(#17038160)
My C++ is rusty but you'd do it exactly like you do in ML. Something like:
[ Parent
| on HN ]
Thanks, that neat. But how would you build a list of arbitrary length and free it later? You'll use pointers, one way or another. The only way to avoid pointers I could imagine is to use stack with recursion, but that's completely crazy and limited programming style.