Req #60610 [Opn]: Allow functions without Parentheses

From: Date: Mon, 26 Dec 2011 23:17:54 +0000
Subject: Req #60610 [Opn]: Allow functions without Parentheses
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-166092@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60610&edit=1 ID: 60610 User updated by: valentiny510 at yahoo dot es Reported by: valentiny510 at yahoo dot es Summary: Allow functions without Parentheses Status: Open Type: Feature/Change Request Package: *General Issues Operating System: windows PHP Version: 5.3.8 Block user comment: N Private report: N New Comment: class Example {} trait example {} interface Example {} etc.. why not.. function example {} Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#166092) next »