Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not really.

Usually, in such a situation, you can fail early, and you can log a warning.

The alternative, of trying to fix the developers error with heuristics, almost always ends with worse security-critical bugs.

There’s a reason people advocate for strict typing, and proper errors, and not PHP’s "any unreferenced constant is of type string with its name being its content".



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: