152
What are some cool and obscure data structure you know of?
(programming.dev)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
An ultimately doomed one that existed in Perl for a while was the pseudohash. They were regular integer-indexed arrays that could be accessed as though they were hashes (aka associative arrays / dictionaries). They even made it into the main Perl books at the time as this awesome time saving device. Except they weren't.
I did a quick web search just now and someone did a talk about why they weren't a great idea and they tell it better than I could; Link: https://perl.plover.com/classes/pseudohashes/
The supplied video doesn't have great sound quality, and it might be better to just click through the slides under Outline at the bottom there.