Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • $\begingroup$ I don't understand ... so what, basically we can't use arrays ?? $\endgroup$
    – redjamjar
    Commented Oct 10, 2023 at 20:02
  • 1
    $\begingroup$ @redjamjar: You can use arrays, but only in safe ways. $\endgroup$ Commented Oct 10, 2023 at 20:54
  • 1
    $\begingroup$ @redjamjar you can write programs with arrays, but you can't reason about them. $\endgroup$
    – ice1000
    Commented Oct 10, 2023 at 21:23
  • $\begingroup$ @ice1000: Would you really say that? If you provide proofs of correctness of indices, as you should, you can reason about arrays. $\endgroup$ Commented Oct 11, 2023 at 5:34
  • 1
    $\begingroup$ @AndrejBauer you're right. I should say you can't reason about them as naturally as you could reason about lists -- you would pay extra effort to do so. $\endgroup$
    – ice1000
    Commented Oct 11, 2023 at 6:05