ID:               50724
 Updated by:       [email protected]
 Reported By:      talat at imranmedia dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Feature/Change Request
 Operating System: Linux
 PHP Version:      5.3SVN-2010-01-11 (snap)
 New Comment:

This would add one token one would have to consider while reviewing
code and not necessarily help in any way.


Previous Comments:
------------------------------------------------------------------------

[2010-01-11 23:06:59] talat at imranmedia dot com

Description:
------------
Very often when writing a method, there is a conditional block, say for
security purposes, where a special return case is required.  The code
would look something like this:

if($this->someCheck($foo))
{
   return $bar;
}
// continue method

It would be great if we could just write a line such as:

returnIf($condition,$return);
// continue method

This is a nice to have, but would improve code readability.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50724&edit=1

Reply via email to