Skip to content
This repository has been archived by the owner on Dec 18, 2021. It is now read-only.

RFC: use @assert instead of custom assertion #2

Open
Roger-luo opened this issue Feb 13, 2019 · 0 comments
Open

RFC: use @assert instead of custom assertion #2

Roger-luo opened this issue Feb 13, 2019 · 0 comments

Comments

@Roger-luo
Copy link
Member

Roger-luo commented Feb 13, 2019

@assert can be optimized out by compiler and can be disabled in the future:

JuliaLang/julia#25576

we can change methods like assert_addr_inbounds to is_addrs_inbounds and use an @assert

Update:

Unfortunately, it is not optimized out yet. But there would be options for this. I'll keep the original for now. But I'll just leave this issue open to remind us.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant