One of the more unexpected things writing Rust did to my C coding habits is to make me stop using pointer arithmetic.
-
-
Yeah, I mean I write “&foo[1]” instead of “foo + 1”.
-
I feel like that's just syntactic games. The real difference is never using pointer vars that point into arrays, instead using a pointer to the array and an index. But...
-
...restricting yourself like that precludes use of subarrays, string tails, etc.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.