Re:Special Cases Are a Code Smell
by banku_brougham on Saturday January 26, 2019 @07:35PM
(#19009560)
This is interesting. Is it possible to implement a linked list while eliminating the end of the list ‘edge case’, in the fashion of the parent article?
[ Parent
| on HN ]
Re:Special Cases Are a Code Smell
by pure-awesome on Monday January 28, 2019 @06:55AM
(#19016774)
Create a "sentinel" node which represents null and also points to itself, perhaps?