Re: [RFC] Traits with interfaces

From: Date: Wed, 17 Feb 2016 20:22:19 +0000
Subject: Re: [RFC] Traits with interfaces
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-91260@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2/17/2016 9:01 PM, Kevin Gessner wrote: > > I'm not clear on the motivation for this principle. Is there > anything I could read up about explicit vs implicit in PHP design? > This is not so much about implicit vs. explicit PHP design for me. This is about inheriting something from a piece of "reusable dead code" (that is how I use to explain traits to youngsters). On 2/17/2016 9:01 PM, Kevin Gessner wrote: > > What cases are you thinking of here? I'm trying to come up with an > example where a class that wouldn't want an interface provided by a > trait it uses. > In any case in which you want to provide the same functionality as the trait provides but to not want to be of the same kind. On 2/17/2016 9:01 PM, Kevin Gessner wrote: > > I don't use a PHPDoc-aware IDE (I'm old fashioned), so I'd want any > change to be part of the language itself, where enforcement is > guaranteed. > That is unfortunate for you because you are missing out on many great features and that was even the case in the 1990s. However, I am not here to convince you of using an IDE. - -- Richard "Fleshgrinder" Fussenegger -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWxNZ7AAoJEOKkKcqFPVVrNh0P/2126wunMnqX1g698s3T1g2R olOzE3+tRLN8shmwl3/Gk2d8OoW4vsx5D0et/w2T2X0rIIBm2Fq7kRfQU5kmVL0x zTZkYL5oDxlasGNjlFqhJhPxILbrzrrSRK15DsGHOzau+hCdlXjK+Cs+UuXXzw4h Wk4Mbak16sWX4nWVdotB7otHrXNQCVAwyNuEfTIWEWVKBGzAzr8iMgmiaepgtUoT KclQOHdOHC1J2+16MiEK+P1wQZf/SMh2SecxFLBm/xRNerHXBYPM3yD9DDmDg+B7 K3BhRjI8fa45Xo7lQFxF9BI30IdupaJAYguPJeL7/w+NggiY0iq+5m/smrDEjrTz 01GmjN/2GTlN6xOTHXbnc+FdL7RTbGupmBBNXMJrjyxlFkjRFnDB0LxU3KsZj8MB RohVPmsZEqhlmGTXHSrf46Ps1AwPafheJDkXz4HASye+54umg0TIxPS3lzra+KIt 0a7O53t4NYvP1/Q1pwIg8iM+atrHmb5D55mHtzB4Z/zz/d0cIw6gO/arJAIgBO+S 10VlFnK1rPKVlUj0lk2kPEzMTmBQF6pYbjnnJoLuCID7UsYjABxYval6yT1yblSu zKcU0UXtlR6rJA9fN3P7VHWTn9U5nSFG8uRrN5LC+zJka+k5UenvYDTUCcbE+yfM Lwd7W7eM1zuBKIjYDtTL =+QfU -----END PGP SIGNATURE-----

« previous php.internals (#91260) next »