This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
asserts getting removed without -prod flag #23615
Labels
Bug
This tag is applied to issues which reports bugs.
Describe the bug
I am running my program with the following flag command
D:/software/v/v.exe D:/Code/v/bwinf_25_2a1/src -color -o D:\Code\v\bwinf_25_2a1\bin\main.exe
and it removes the asserts.Additionally, I would like to propose not, under any circumstances, even in production, remove asserts since even in production you would rather crash the program than have everything break. Yes, it slows down the program, but there is something called assert-driven-development where you say you prefer crashes over bugs and therefore instantly crash the program in case of asserts failing. I would be very fond of removing asserts being an opt-in flag, not something forced
Reproduction Steps
Expected Behavior
it panicking
Current Behavior
my program failing because weird circumstances happened
Possible Solution
fix the bug
Additional Information/Context
When compiling with
D:/software/v/v.exe D:/Code/v/bwinf_25_2a1/src -color -g -no-parallel -no-retry-compilation -keepc -cc msvc -o D:\Code\v\bwinf_25_2a1\bin\main.exe
it worksV version
V 0.4.9 d0ce8a2
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: