Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99084 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55416 invoked from network); 17 May 2017 17:14:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 May 2017 17:14:27 -0000 Authentication-Results: pb1.pair.com header.from=michal@brzuchalski.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=michal@brzuchalski.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain brzuchalski.com designates 188.165.245.118 as permitted sender) X-PHP-List-Original-Sender: michal@brzuchalski.com X-Host-Fingerprint: 188.165.245.118 ns220893.ip-188-165-245.eu Received: from [188.165.245.118] ([188.165.245.118:60758] helo=poczta.brzuchalski.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/F7-21791-2F48C195 for ; Wed, 17 May 2017 13:14:27 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by poczta.brzuchalski.com (Postfix) with ESMTP id 5225E2984233 for ; Wed, 17 May 2017 19:14:24 +0200 (CEST) Received: from poczta.brzuchalski.com ([127.0.0.1]) by localhost (poczta.brzuchalski.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6cbkFCwsKgZn for ; Wed, 17 May 2017 19:14:22 +0200 (CEST) Received: from mail-wm0-f42.google.com (unknown [74.125.82.42]) by poczta.brzuchalski.com (Postfix) with ESMTPSA id 202192984236 for ; Wed, 17 May 2017 19:14:21 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id v15so23899105wmv.1 for ; Wed, 17 May 2017 10:14:21 -0700 (PDT) X-Gm-Message-State: AODbwcAdsnHxRNeewlD4LWybYCpssF/AqjMrPsS22409ZtnSSmL794aG m232EYNog6vy1Te/bDUKF/BEe/035Q== X-Received: by 10.28.45.18 with SMTP id t18mr10740057wmt.6.1495041260883; Wed, 17 May 2017 10:14:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.136.253 with HTTP; Wed, 17 May 2017 10:14:20 -0700 (PDT) In-Reply-To: References: Date: Wed, 17 May 2017 19:14:20 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Dan Ackroyd Cc: Levi Morrison , PHP Internals List Content-Type: multipart/alternative; boundary="001a1142477e479bea054fbb6b97" Subject: Re: [PHP-DEV] [RFC] [VOTE] Object typehint RFC From: michal@brzuchalski.com (=?UTF-8?Q?Micha=C5=82_Brzuchalski?=) --001a1142477e479bea054fbb6b97 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2017-05-17 19:12 GMT+02:00 Dan Ackroyd : > > We were thinking about enumerations > > Who do you mean 'we', kemosabe? > My apologies. I was a little hurry. > > > Especially when taking Java pattern > > Java has been limited in its design as almost everything had to be an > object, whether or not it was a good fit for what was needed. > > For me, objects are good at storing state, hiding implementation > details and allowing type substitution.....pretty much none of those > things apply to enums, and so make me think that forcing enums to be > objects isn't always the right thing to do. > > cheers > Dan > --=20 regards / pozdrawiam, -- Micha=C5=82 Brzuchalski about.me/brzuchal brzuchalski.com --001a1142477e479bea054fbb6b97--