Re:Rusty Ownership and the Lifecycle’s Stone
by howinteresting on Sunday November 27, 2022 @02:18PM
(#33765732)
The simplest data structures are pairs (A, B) and Option<T>.
[ Parent
| on HN ]
Re:Rusty Ownership and the Lifecycle’s Stone
by ok123456 on Sunday November 27, 2022 @02:34PM
(#33765915)
Wouldn't call those data structures. Those are data types.
Re:Rusty Ownership and the Lifecycle’s Stone
by howinteresting on Sunday November 27, 2022 @05:26PM
(#33767661)
They are structured data. The restriction of the term "data structures" to what's asked in interview puzzles is ridiculous IMHO.
Edit: and even among "interview puzzle data structures", stacks and queues have much simpler semantics than linked lists.