"RokuKC" wrote:
It's working as designed. A usage error doesn't have to be fatal to be an error. 🙂
Do you mean that you consider the scary diagnostic a great design, because it will freak out developers into coding better?
Consider that said design got "hoist with his own petard" in this RAF case - because
- the channel developers get scared but can do nothing to fix the issue (because of closed source) - while
- the library maintainer could have but did not bother to fix it (because they knew said "error" is a warning in disguise).
So we got incentive reversal, a cobra effect.^
My modest proposal is to call a spade a spade. All developers that have ever used a compiler are already conditioned there are two distinct kinds of diagnostics spat -
errors ("you shall not pass!") and
warnings ("fine, i'll do it... begrudgingly. but you'll be sorry, probably") - so play to that strength, use the shared vocabulary
(^) there is a quote by comrade Lenin about what a "revolutionary situation" is - which i will butcher translating to shoehorn it here: "those who can - won't and those who want - can't"