Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83737 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32311 invoked from network); 25 Feb 2015 04:27:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Feb 2015 04:27:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=larry@garfieldtech.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=larry@garfieldtech.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain garfieldtech.com from 66.111.4.25 cause and error) X-PHP-List-Original-Sender: larry@garfieldtech.com X-Host-Fingerprint: 66.111.4.25 out1-smtp.messagingengine.com Received: from [66.111.4.25] ([66.111.4.25:33206] helo=out1-smtp.messagingengine.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 70/00-32189-24F4DE45 for ; Tue, 24 Feb 2015 23:27:48 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 377DE20676 for ; Tue, 24 Feb 2015 23:27:43 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Tue, 24 Feb 2015 23:27:44 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:message-id:date:from :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=YKz6Fzhil1nswsHi/JLpCu plATM=; b=fs+e5+FQyNZnlRN7vV5xt0MmxmGYZX6B1ArJ62a26kmNXVCZLXpHS7 JE2tgKwwNtnVLMrU07psHNgSPpaklEF8J9A9A1V/xusAY74a3I7nEk8dIoak5CHR jyQQq3mATaH5SBHG35TpJJrJUXhaRXJGAXfLSvcpgmmGzy/34aIOs= X-Sasl-enc: d2g1Ux24ePpHPdWFeZNgu4AHf7ZRolIOmSzcytwlHnMT 1424838463 Received: from [192.168.42.145] (unknown [98.226.241.18]) by mail.messagingengine.com (Postfix) with ESMTPA id AB0C5C002A7 for ; Tue, 24 Feb 2015 23:27:43 -0500 (EST) Message-ID: <54ED4F3E.3060901@garfieldtech.com> Date: Tue, 24 Feb 2015 22:27:42 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: internals@lists.php.net References: <02a101d04af9$507484f0$f15d8ed0$@php.net> <02ff01d04b72$abae34a0$030a9de0$@php.net> <032801d04b8d$8ff3dce0$afdb96a0$@php.net> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Annotations in PHP7 From: larry@garfieldtech.com (Larry Garfield) On 02/21/2015 03:35 PM, Pavel Kouřil wrote: > > I know you could wrap it in your code, but that would still mean there > would probably be multiple implementations of Annotations in the > "wild", instead of a good complete functionality in the language > itself. > > I know PHP is not primarily an OOP language, but Annotations IMHO make > sense as classes, so I don't see any reason why would it be bad to > make them in that way. Also, making Annotations be classes won't > magically turn PHP into a primarily OOP language? > > Regards > Pavel Kouřil If you look at the major projects and code in the wild, PHP is a primarily OOP language and has been for years. It's multi-paradigm but OOP is the dominant style in the wild today. And I think mapping annotations to classes is a fine idea, as it means I can very easily document what a given annotations is for (it's a class, document the class), extend it, and build meaningful functionality and defaults using an already well-known syntax and convention. --Larry Garfield