Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | chanon | |
Old Version | Published before Godot 3 was released. |
Since it is easy to have typos and other small errors cause bugs in dynamically typed languages like GDScript, I would like to code in a “defensive coding” style where I verify the parameters of method calls and other inputs.
However, doing this a lot might affect performance, so I am wondering if there is some kind of assert command which is only run in debug / development to help catch errors and removed (not called) in exported / release builds?