Replies: 2 comments 1 reply
-
Connected to Huly®: V_0.6-22040 |
Beta Was this translation helpful? Give feedback.
-
If it's such a "thing", why does a google search for "assert driven development" only return links for "test driven development"? The theory behind disabling asserts with It is a much, much better user experience to see a nice error message explaining what happened, than for the program to simply crash & burn. Personally, if I see a program crash & burn, I just stop using it - I usually don't even bother reporting it, as I feel if they are that careless in their coding, I don't want to run their code. Of course, this is with the caveat that if I know that I'm using Beta software, I make allowances for that. |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions