[TYPO3-50-general] RFC: Improved Shorthand Syntax
Karsten Dambekalns
karsten at typo3.org
Wed Oct 21 10:57:32 CEST 2009
Hi.
On 20.10.09 12:02, Steffen Müller wrote:
> What about object properties which end with a - ? This should be
> strictly forbidden then.
Well, I simply tried it after suspecting it is illegal in PHP anyway:
<?php
$a- = 5;
?>
PHP Parse error: syntax error, unexpected '=' in
/Users/karsten/test.php on line 2
<?php
function foo-() {}
?>
PHP Parse error: syntax error, unexpected '-', expecting '(' in
/Users/karsten/test.php on line 2
No surprise, right?
Regards,
Karsten
More information about the TYPO3-project-5_0-general
mailing list