-
Notifications
You must be signed in to change notification settings - Fork 74
Make playpen compile with debug asserts/overflow checks per default. #88
Comments
I'd rather say there should be another switch - as for optimization ( Also, allows to argue about features which behave differently in debug and release modes, like @Kimundi 's example :p |
I just realized that overflow checks are enabled with |
I couldn't trigger compile-time check with |
Yeah I've often thought that opt-by-default may be the wrong default here as well, although I think we have two options here:
If we add a separate toggle it does seem prudent to enable them by default! |
@mkpankov: Your screenshot shows a compiletime check though. However, this issue is about the debug runtime checks. |
@Kimundi right, I misunderstood what "application terminated with error code 101" means. Turns out this line is printed on compiler errors and runtime errors the same. |
Eg, so that this panics:
The text was updated successfully, but these errors were encountered: