One of the more unexpected things writing Rust did to my C coding habits is to make me stop using pointer arithmetic.
-
-
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 -
-
-
Mutating index variables instead of pointers is golden
-
How about &1[foo] to make people really confused?
- 1 more reply
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.