News for hackers. Stuff that matters.
Re:I Like PHP by masklinn on Wednesday August 10, 2011 @02:53PM (#2869648)
> PHP is academic

Uh... could you explain how you arrived to this assertion? Because as far as I can see, PHP definitely is not academic. The bloody thing started as a hodge-podge collection of Perl scripts, and to this day it still does not have anything even remotely close to a formal grammar. A language in which `foo()[1];` is a syntax error even though `$a = foo(); $a[1];` is valid code most definitely is not academic.

Re:I Like PHP by jrockway on Wednesday August 10, 2011 @06:08PM (#2870431)
Actually, it's parsed with a rather simple yacc grammar. The reason why foo()[1] doesn't work is because it's a bad programming language, not because it doesn't have a grammar. It has one and it says not to parse that :)