672
pointers are very eleganto
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
Here's a true example from my collections library:
https://github.com/ZILtoid1991/collections-d/blob/05e51c1acdd0bb583fbb8548c79d1b3fbaff37cc/source/collections/linkedlist.d#L75
This one uses a bit safer reference to a pointer:
https://github.com/ZILtoid1991/collections-d/blob/05e51c1acdd0bb583fbb8548c79d1b3fbaff37cc/source/collections/treemap.d#L662C1-L685C3
Basically it allows me to modify a pointer easily.