Req #80298 [Com]: Please remove Traits

From: Date: Fri, 13 Nov 2020 12:47:01 +0000
Subject: Req #80298 [Com]: Please remove Traits
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230323@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80298&edit=1 ID: 80298 Comment by: alex at alex-at dot net Reported by: pavel dot dvorak dot work at gmail dot com Summary: Please remove Traits Status: Not a bug Type: Feature/Change Request Package: *General Issues PHP Version: 8.0.0RC3 Block user comment: N Private report: N New Comment: Not to ask for it, just mentioning. Actually multiple class inheritance would remove the need for traits and it's long standing thing that is desired by many out there I think. With resolution priority in order of inheritance, low to high. Previous Comments: ------------------------------------------------------------------------ [2020-11-04 01:10:24] girgias@php.net Feel free to bring this up on internals and write an RFC for it. But it's going to be hard to convince people, although I kinda agree they are sub-optimal. ------------------------------------------------------------------------ [2020-10-31 12:45:06] pavel dot dvorak dot work at gmail dot com OK I don't use them but it takes a lot off effort to discuradge other people. ------------------------------------------------------------------------ [2020-10-29 21:11:53] peehaa@php.net Yes! But no, sorry :-( ------------------------------------------------------------------------ [2020-10-29 21:11:07] rtrtrtrtrt at dfdfdfdf dot dfd clap that one on the fingers or don#t use them it's that simple i don't care for traits or namespaces at all i just don't use them, case closed just beause someone is too stupid to use some technology properly is hardly a valid reason to remove the technology alltogether ------------------------------------------------------------------------ [2020-10-29 21:09:04] pavel dot dvorak dot work at gmail dot com Description: ------------ Please deprecate traits, it caused me so much trouble because someone use it incorrecly (like abstract). It creates untestable code Thanks Expected result: ---------------- No traits ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80298&edit=1

« previous php.bugs (#230323) next »