News for hackers. Stuff that matters.
Re:A Reply to “Let’s stop copying C” by gingerBill on Sunday January 26, 2020 @07:12AM (#22151698)
This is why Odin does not have first class pointer arithmetic and has first class support for slices. I have found in practice that I don't actually need pointer arithmetic most of the time as slices solve that function.

The reason pointer arithmetic is so useful in C is because of its lack of array types, like slices. `x[n]` is the same as `*(x + n)` which means in C, you can do the "wonderful" trick of `n[x]`.

There are no comments on this comment yet.