From:             knight at kopernet dot org
Operating system: 
PHP version:      Irrelevant
Package:          Class/Object related
Bug Type:         Feature/Change Request
Bug description:consider the final keyword depracation

Description:
------------
The final keyword is widely recognized among many programmers that adopted
OOP paradigim esp. comming from or knowing Java.
I find it very problematic though.
Without a real compilation stage using the final keyword in the type hints
does not make sure that all execution paths in the calling code passes an
object of the expected type. This is completely different from Java which
actually makes sure the correctness of the passed arguments.
Also when it comes to writing unit tests - there's no way to override a
final class and test code that makes use or depends on such an object.

Please consider deprecating, removing the final keyword or release the
imposed restriction.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=65103&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=65103&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=65103&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=65103&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=65103&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=65103&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=65103&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=65103&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=65103&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=65103&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=65103&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=65103&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=65103&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=65103&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65103&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=65103&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=65103&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=65103&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65103&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=65103&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65103&r=mysqlcfg

Reply via email to