comprehensive-rust icon indicating copy to clipboard operation
comprehensive-rust copied to clipboard

Add a small illustration of bounds checking.

Open gendx opened this issue 2 years ago • 1 comments

Not strictly necessary at this stage of the course, but this page didn't have much content and I found it interesting that the compiler even checks the bounds at compile time when the array length is already known :)

Let me know what you think!

gendx avatar Feb 03 '23 14:02 gendx

Hey @gendx, I think I'm not a fan of adding more code right here — we will see the exact same thing in a few slides when we talk about arrays. Keeping the slide simple and focused is more important to me than showing all the things as early as possible.

mgeisler avatar Mar 01 '23 09:03 mgeisler

I think we can close this — I would really like an actual diagram on the relevant page where we talk about arrays and stack/heap etc, but I think we should keep this slide focused.

mgeisler avatar Aug 11 '23 12:08 mgeisler