# Assert\_safe alias for: if (std.debug.runtime\_safety)

**URL:** <https://ziggit.dev/t/assert-safe-alias-for-if-std-debug-runtime-safety/18155>\
**Category:** Brainstorming\
**Tags:** build-system\
**Created:** [October 30, 2026, 9:18pm UTC](https://ziggit.dev/t/assert-safe-alias-for-if-std-debug-runtime-safety/18155 "2026-10-30T21:18:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![squeek502](https://ziggit.dev/user_avatar/ziggit.dev/squeek502/32/409_2.png) [@squeek502](https://ziggit.dev/u/squeek502)\
**Post date:** [October 30, 2026, 11:13pm UTC](https://ziggit.dev/t/assert-safe-alias-for-if-std-debug-runtime-safety/18155/2 "2026-10-30T23:13:45Z")

</div>

It would first be helpful to understand _why_ you’re doing:

```zig
if (std.debug.runtime_safety) assert(g < self.first_rows.len());

```

* * *

Note that there has been a lot written about assert that you might be interested in reading:

- [You Must Fix Your Asserts | Loris Cro's Blog](https://kristoff.it/blog/fix-your-asserts/)
- [Assert but only in paranoid mode](https://ziggit.dev/t/assert-but-only-in-paranoid-mode/9934)
- [Proposal : builtin @assert() One assert to rule them all](https://ziggit.dev/t/proposal-builtin-assert-one-assert-to-rule-them-all/9707)
- [Do we need an @assert?](https://ziggit.dev/t/do-we-need-an-assert/13447)

---

_[View the full topic](https://ziggit.dev/t/assert-safe-alias-for-if-std-debug-runtime-safety/18155)._
