Re:Long Error Messages
by skohan on Wednesday September 22, 2021 @12:13PM
(#28618130)
The evolution of better error messages has been one of the biggest QOL improvements in language and API design of late. For instance, even a system as intricate and demanding as Vulkan can be pleasant to work with, because when something goes wrong you always know exactly what it is, and you have a link to the documentation to read more about it.
[ Parent
| on HN ]
And the best thing is that when you are releasing, you turn this validation layer off, which is good for 2 reasons:
-No performance is wasted in release builds
-Validation checks can be expensive and exhaustive as it will not run in production code