Re: Fwd: [PHP-DEV] [RFC] PHP Attributes
| From: | Fleshgrinder | Date: | Sat, 30 Apr 2016 11:33:54 +0000 |
| Subject: | Re: Fwd: [PHP-DEV] [RFC] PHP Attributes | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92980@lists.php.net to get a copy of this message | ||
On 4/28/2016 11:15 PM, Stanislav Malyshev wrote:
> I think we should not try to be Haskell, Scala and Eiffel at the same
> time. DbC is not something most of the users of the language require and
> would ever use, unlike Eiifel where it is major part of what the
> language is. Giving a possibility of implementing it using attributes is
> fine. But bringing yet another conceptual framework into PHP looks like
> overkill to me.
>
Yes, we should not be copy cats. However, we already have
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
assert() and
people are just discovering it, despite being there forever. I am not
proposing the previously mentioned syntax as a real RFC yet, simply
because I do not think that it is the right time to do so. However, I do
believe that DbC does not belong into meta-attributes.
My question remains: why DbC in meta? What could be any advantages?
--
Richard "Fleshgrinder" Fussenegger
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc