|
From: | Arun Giridhar |
Subject: | [Octave-bug-tracker] [bug #61753] Changing assert to panic_impossible |
Date: | Mon, 3 Jan 2022 18:28:07 -0500 (EST) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0 |
Follow-up Comment #7, bug #61753 (project octave): Suggestion that I would like your feedback on. Instead of panic_if, consider negating the logic and calling it panic_unless. That way, nearly all assert statements can be replaced by panic_unless without having to negate the logic individually for each calling location. Might be scriptable. Thoughts? _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?61753> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |