ᴄʜᴏᴋɪᴅᴀʀ to Programmer [email protected]English • 2 years agorust in the linux kernelimagemessage-square30arrow-up1276arrow-down16
arrow-up1270arrow-down1imagerust in the linux kernelᴄʜᴏᴋɪᴅᴀʀ to Programmer [email protected]English • 2 years agomessage-square30
minus-square@[email protected]linkfedilinkEnglish19•2 years agoThere! Now try to make a doubly linked list
minus-square@[email protected]linkfedilinkEnglish5•2 years agounsafe 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-square@akash_rawallinkEnglish4•2 years agoquietly implements next and prev references using array index
There! Now try to make a doubly linked list
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.
quietly implements
next
andprev
references using array indexits not super hard in rust
It’s harder than in most other languages