3 ms·
> If you don't know what the end of your array is, you've got bigger problems. That's called “a pointer”. Not all ways of representing arrays and spans come wi
by Sesse__ 1y ago
> If you don't know what the end of your array is, you've got bigger problems.
That's called “a pointer”. Not all ways of representing arrays and spans come with explicit lengths.
> These protests that "I can't do that because I'm just so helpless" make no sense to me. Read the array in whatever order you want, whenever you want. It's not that hard. It's just about the easiest thing there is. (Too much vibe coding?)
I don't know why you think I am too helpless to write it; I've never said such a thing. I have never used AI to write code in my life, and I'm perfectly able to write code to both reverse an array and read it backwards (in multiple languages, thank you). But sometimes, you _actually want to reverse it_ because it makes other parts of the code more convenient and/or faster.