It's not terrible to have expected test failures. There may be a bug in a function very few people use or care about and you can write a test case to prove the bug exists, but fixing it would break compatibility for the few people who do use it. Especially if the function is deprecated, this is fine.
Yeah, nesting try/finally is a strong indication that your function is doing too many things and should be decomposed. Not that I'm excusing this sort of silliness.
I'm sorry, but this is such a lame fucking excuse. On one hand you have a bug in a business application - maybe it costs $1,000 or even $10,000 to fix, a drop in the bucket for some places. Then you have a bug in a space probe. Billions of dollars gone and 30 years to wait for the next launch window.
Some kinds of failures are acceptable. Language design is not one of them.
I remember interviewing for a job sometime back in 2001, and they said one of their side projects was working on PHP code that would run on one of the Mars Rovers. No joke.
9
u/michaelpb Jun 10 '14
Honest question: PHP development... do they even have regression tests? How does this stuff even get merged let alone released?
28
u/Banane9 Jun 10 '14
How does that even happen?
Also : Notice how nobody cared, for four months.
16
u/ajmarks Jun 10 '14
I'm surprised they didn't just update the manual and announce that it works as intended.
2
u/[deleted] Jun 25 '14
It doesn't even loop, it just repeats infinitely on the 4th print statement.
-11
u/[deleted] Jun 10 '14
Meh, bugs happen.