The separation of presentation and logic.
Anyone who's spent the 1990s coding Perl CGI will tell you just how big of a step backward this is.
Anyone who's spent the 1990s coding Perl CGI will tell you just how big of a step backward this is.
WHAT? The explicit purpose of this is to combine the presentation (HTML) and logic (PHP) layers.
Let's take a real case: Smarty. To my eye, XHP is going to take a huge slice of the PHP template system market away from Smarty. The reason is that XHP gives you the native constructs of PHP (sans mind-bending hacks -- try referencing a class constant in Smarty) while staying at the right level of abstraction for fast development: chunks of valid XHTML.