Re: [PHP] Gripe

2003-09-03 Thread Mike Migurski
Cuz the the way the PHP parser is written makes it impossible to discover the error before it gets to the end of the file, and realizes that there are no more braces to go around. It definitely sucks... almost as badly as a stray backtick. Try finding that little bugger at 1600x1280... This is

Re: [PHP] Gripe

2003-09-03 Thread Jason Sheets
This isn't really a problem with PHP, you will encounter it with many other languages how is the parser supposed to know you haven't closed a brace until it reaches the end of the file? It doesn't match using indentation like humans do. Indenting code and code syntax highlighting make it very

RE: [PHP] Gripe^2 [was Gripe]

2003-09-02 Thread Chris W. Parker
Curt Zirzow mailto:[EMAIL PROTECTED] on Friday, August 29, 2003 7:54 PM said: Why do people insist on using their work address so we are plagued with privacy notices and autorespond's letting us know that he will be gone one extra day over the weekend Well fortunately for me I don't

Re: [PHP] Gripe

2003-08-30 Thread Chris Shiflett
--- Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Chris W. Parker ([EMAIL PROTECTED]): Chris Shiflett mailto:[EMAIL PROTECTED] on Friday, August 29, 2003 2:16 PM said: if ($foo) { if ($bar) echo 'blah'; else { echo 'else'; } ^ ^

Re: [PHP] Gripe^2 [was Gripe]

2003-08-30 Thread Curt Zirzow
Why do people insist on using their work address so we are plagued with privacy notices and autorespond's letting us know that he will be gone one extra day over the weekend p.s. you'll know why I'm griping if you reply to this bg p.s.s. at least till i get him booted off the list vbg

Re: [PHP] Gripe^2 [was Gripe]

2003-08-30 Thread Nicholas Robinson
You could equally ask why we get plagued with silly strap lines like I used to think I was indecisive, but now I'm not so sure. HTH On Saturday 30 Aug 2003 3:54 am, Curt Zirzow wrote: Why do people insist on using their work address so we are plagued with privacy notices and autorespond's

Re: [PHP] Gripe^2 [was Gripe]

2003-08-30 Thread Curt Zirzow
* Thus wrote Nicholas Robinson ([EMAIL PROTECTED]): You could equally ask why we get plagued with silly strap lines like I used to think I was indecisive, but now I'm not so sure. No, you can't *equally* ask why. It is perfectly acceptable to have a signature attached to your email. It is

[PHP] Gripe

2003-08-29 Thread Jackson Miller
Why is it that when you forget a } the error says: Unexpected $ on line [last line of file] Why can't it just say: Missing } on or before (best guess). -Jackson -- jackson miller cold feet creative 615.321.3300 / 800.595.4401 [EMAIL PROTECTED] cold feet presents Emma the world's easiest

Re: [PHP] Gripe

2003-08-29 Thread Pete James
Cuz the the way the PHP parser is written makes it impossible to discover the error before it gets to the end of the file, and realizes that there are no more braces to go around. It definitely sucks... almost as badly as a stray backtick. Try finding that little bugger at 1600x1280...

Re: [PHP] Gripe

2003-08-29 Thread Jackson Miller
On Friday 29 August 2003 3:27, Pete James wrote: Cuz the the way the PHP parser is written makes it impossible to discover the error before it gets to the end of the file, and realizes that there are no more braces to go around. Yeah, i understand the difficulty. It was a gripe and not a bug

Re: [PHP] Gripe

2003-08-29 Thread John W. Holmes
Jackson Miller wrote: Why is it that when you forget a } the error says: Unexpected $ on line [last line of file] Why can't it just say: Missing } on or before (best guess). How could the parser possibly know that one was missing as it's going through the file? It just keeps a count and can only

Re: [PHP] Gripe

2003-08-29 Thread Chris Shiflett
--- John W. Holmes [EMAIL PROTECTED] wrote: How could the parser possibly know that one was missing as it's going through the file? It just keeps a count and can only realize something is wrong when it gets to the end of the file and sees the count is off. I can't see how a human could

RE: [PHP] Gripe

2003-08-29 Thread Chris W. Parker
Chris Shiflett mailto:[EMAIL PROTECTED] on Friday, August 29, 2003 2:16 PM said: if ($foo) { if ($bar) echo 'blah'; else { echo 'else'; } ^ Where is the missing brace? :-) |

RE: [PHP] Gripe

2003-08-29 Thread Chris W. Parker
Chris W. Parker on Friday, August 29, 2003 2:23 PM said: I'm pretty sure I've seen an error message from something (maybe, asp.net, or classic asp) that shows a line like i've drawn and points to where it thinks the problem is. (And no it wasn't always the end of the last line.) But

Re: [PHP] Gripe

2003-08-29 Thread Curt Zirzow
* Thus wrote Chris W. Parker ([EMAIL PROTECTED]): Chris Shiflett mailto:[EMAIL PROTECTED] on Friday, August 29, 2003 2:16 PM said: if ($foo) { if ($bar) echo 'blah'; else { echo 'else'; } ^ ^ ^ Where is the missing brace? :-) |

RE: [PHP] Gripe

2003-08-29 Thread Chris W. Parker
Curt Zirzow mailto:[EMAIL PROTECTED] on Friday, August 29, 2003 3:12 PM said: Here +--+-/ | | Or Here -+--/ | Or Here -/ Oh yeah of course. But I thought