sophiajt / june

MIT License
803 stars 31 forks source link

Indexing a buffer is unsafe and unchecked #18

Closed sophiajt closed 9 months ago

sophiajt commented 9 months ago

Currently, something like:

let x = [1, 2, 3]
println(x[5])

Would compile and attempt to run, and then possibly crash as the index is not checked at runtime.

sophiajt commented 9 months ago

This now requires unsafe