Edit report at https://bugs.php.net/bug.php?id=60610&edit=1
ID: 60610 Updated by: larue...@php.net Reported by: valentiny510 at yahoo dot es Summary: Allow functions without Parentheses -Status: Open +Status: Wont fix Type: Feature/Change Request Package: *General Issues Operating System: windows PHP Version: 5.3.8 Block user comment: N Private report: N New Comment: PHP was not Perl, and will not to be it too :) Previous Comments: ------------------------------------------------------------------------ [2011-12-26 23:32:03] paj...@php.net As I can already say that this feature will be rejected, you can still try on internals and using a RFC, but don't hold your breath for a positive answer. This change brings zero gain. ------------------------------------------------------------------------ [2011-12-26 23:17:54] valentiny510 at yahoo dot es class Example {} trait example {} interface Example {} etc.. why not.. function example {} ------------------------------------------------------------------------ [2011-12-26 22:39:16] valentiny510 at yahoo dot es Description: ------------ I think will be nice and clean feature to be able to write functions without arguments with no parentheses like: function ExampleFunction { /* etc.. */ } instead of function ExampleFunction () { /* etc ..*/ } The parentheses here have no sense in my opinion. Thank you ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60610&edit=1