Safe array access with compile-time and runtime bounds checks.
- Compile-time checks: Constant indices are verified at compile time
- Runtime checks: Dynamic indices are checked at runtime
- No buffer overflows: Out-of-bounds access is prevented
- Safe iteration: For-each loops are always safe
- Use for-each loops when possible
- Return
Maybe<T>for fallible lookups - Use range-based loops with known bounds
- Reserve
unsafefor performance-critical code
oxide run main.ox