Hacker News new | ask | show | jobs
by sophacles 4574 days ago
The notion of warnings is not that it the behavior is broken, or even wrong, but rather dangerous. A good solution would be to include a pragma or such that that would allow programmers to say "I recognize this is dangerous, but it is correct".

Even better would be a pragma that allows you to say the above, and also point to a test/test_suit that verifies that the specific case is still working right and warns on "something has changed, test foo no longer holds, here's the associated warning as a hint".

1 comments

Well, some warnings are valid, but yeah, the "I recognize this is dangerous, but it is correct" makes perfect sense.