Re: Error Codes, Langs, etc
| From: | Sascha Schumann | Date: | Tue, 26 Nov 2002 11:24:12 +0000 |
| Subject: | Re: Error Codes, Langs, etc | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91721@lists.php.net to get a copy of this message | ||
> This is not FUD. He brought up the issue of M$ practises. And I didn't
> hear you answer the question about why is "parse error" more difficult to
> understand than "register_shutdown_function"?
You need to learn a bit about writing good compilers. It is
easy to write a compiler; it is hard to write a compiler with
good diagnostic output.
Yes, "parse error" is never a good error message, regardless
of the language it is presented in. Fortunately, most error
messages in PHP are easier to digest and actually provide
some clue.
- Sascha