I was wondering, when do you use jasserts and when do you use bounds checking?
For example, if an out of range value is passed to a slider, should it be clipped within the slider range, or should there be a jassert to tell the programmer that the value is out of range?
And what should happen if a negative value is passed to a combobox?
I think in the first case the value should be clipped, and in the second case there should be a jassert.
But, in many cases it is not so clear.
What are your thoughts about this?
Thanks in advance,