ᴄʜᴏᴋɪᴅᴀʀ@lemmy.world to Programmer Humor@lemmy.mlEnglish · 3 年前rust in the linux kernellemmy.worldimagemessage-square18linkfedilinkarrow-up1504arrow-down118
arrow-up1486arrow-down1imagerust in the linux kernellemmy.worldᴄʜᴏᴋɪᴅᴀʀ@lemmy.world to Programmer Humor@lemmy.mlEnglish · 3 年前message-square18linkfedilink
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkEnglisharrow-up18arrow-down1·3 年前unsafe time. I’ve poked around in the Rust linked list tutorial, and it all seems like hacks to me. At the end of the day I think you just need to use raw pointers when you’re implementing list operations.
minus-squaretias@discuss.tchncs.delinkfedilinkarrow-up15arrow-down1·3 年前It’s harder than in most other languages
minus-squareakash_rawal@lemmy.worldlinkfedilinkEnglisharrow-up1·3 年前quietly implements next and prev references using array index
There! Now try to make a doubly linked list
unsafetime.I’ve poked around in the Rust linked list tutorial, and it all seems like hacks to me. At the end of the day I think you just need to use raw pointers when you’re implementing list operations.
its not super hard in rust
It’s harder than in most other languages
quietly implements
nextandprevreferences using array index