# @assert alternatives?

**URL:** <https://discourse.julialang.org/t/assert-alternatives/24775>\
**Category:** New to Julia\
**Created:** [May 30, 2019, 5:22pm UTC](https://discourse.julialang.org/t/assert-alternatives/24775 "2019-05-30T17:22:15Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![JeffreySarnoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeffreysarnoff/32/1980_2.png) [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Post date:** [May 30, 2019, 11:09pm UTC](https://discourse.julialang.org/t/assert-alternatives/24775/8 "2019-05-30T23:09:45Z")

</div>

+1 for outside-the-box

we want the assertion macro to be able to dissolve in a released version  
we do not want to force the package user to start with `--check-bounds=no`

reversing the sense of your macro forces bounds checking off when assertions are active, and that is imperfect for development

fwiw years ago I found a way that worked – would be worth more with sourcetext, and maybe it worked by using aspects of very early Julia that no longer hold.

---

_[View the full topic](https://discourse.julialang.org/t/assert-alternatives/24775)._
