Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96587 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40648 invoked from network); 24 Oct 2016 10:17:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2016 10:17:03 -0000 Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 74.125.82.51 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 74.125.82.51 mail-wm0-f51.google.com Received: from [74.125.82.51] ([74.125.82.51:35937] helo=mail-wm0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/CB-28528-D9FDD085 for ; Mon, 24 Oct 2016 06:17:02 -0400 Received: by mail-wm0-f51.google.com with SMTP id b80so95161471wme.1 for ; Mon, 24 Oct 2016 03:17:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=mC4X924eCsgdvYU8nsOAVUCkJ7yDA5cqcJDGnPxIo3A=; b=f/QoPgh9N9Y08MTyghhRFoomMgnQKhWKOT+VrfsNkSOPwd9lw/ngETtsD5iU1iO8+r SZeQ1P7bImdjbZHEBqWWdpmpQV0yNAaJp6eStTBDtPCKWsp4Mt61Oto1Pwt9Psg25kDa l/RTb3eYn4knr+hCPrh5HWykvlV//OgLEzKp73lE65mE4rIbHSbDBKlwf1MkCVLKAZer /FdNK9UxGl+6svbZ6kpUUJRkI2zBrOKXfxFQbHinAWF+6N3/+BKF5KmMF/ervTYIsRDt G6ClbghOpfinLTT5bjF/0OBnG3oOx2Rc7M4kz3yYjcFVI1Lyp36vQEhMwS+b1VzaGypw K4AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:subject:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=mC4X924eCsgdvYU8nsOAVUCkJ7yDA5cqcJDGnPxIo3A=; b=IfAaYyeGO5Az1qExmf3HvQUTj7GvfIqLxzV26ZzUZevKHxKam18nxmXNiqAdCHUusp 6xYb3Vuh2YQeo3ghAUoUlCm8BPPONRQ20seB2omHsE852OAjF2hDPYAbfiEm7NhdRTak B2Yij+XUYPABDmadUFchcKPUDPd/dQOsS5iEM0bZOF73ItI+E1E32MKaqLuoNqZL1v+X /icDtTl2eu8yPZO7e8fBCrGBfGsxFh+6qNPNbMjTpiI4GhWeo/d8K4koCjXicDCLh/SY XL2YSAgm9yx59C6Qop0eeNzNs9LlaOWPNVmOuKtSqfhn8EtJoZtic/CONpsMimRAyOTa w+Jg== X-Gm-Message-State: ABUngvcYAykCZLUS5k3uQXLphxpY28FP+uUSCyiiaRV6Kp2aXcJy5HZN4IXI0GBE8DnihQ== X-Received: by 10.194.85.229 with SMTP id k5mr10952095wjz.22.1477304218669; Mon, 24 Oct 2016 03:16:58 -0700 (PDT) Received: from [10.81.230.188] (94.197.120.196.threembb.co.uk. [94.197.120.196]) by smtp.gmail.com with ESMTPSA id p13sm13941424wmd.20.2016.10.24.03.16.57 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 03:16:58 -0700 (PDT) X-Google-Original-From: Dan Ackroyd Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) X-Mailer: iPhone Mail (13G36) In-Reply-To: Date: Mon, 24 Oct 2016 11:16:56 +0100 Cc: PHP Internals List Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Michael Morris Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Object type hint From: danack@basereality.com (Dan Ackroyd) > On 24 Oct 2016, at 07:45, Michael Morris wrote: >=20 > My principle worry with this RFC is it encourages an anti-pattern - not > using interfaces and thereby not clearly labeling what objects can and > cannot do. >=20 You've stated that as fact without any supporting argument, as far as I can s= ee. Any piece of functionality can be abused and used for purposes other that th= e use-cases which it was intended for. But I don't see how this RFC 'encourages' what you consider to be a bad prac= tice. Instead it provides a useful thing that could be misused by bad progra= mmers.=20 We shouldn't be designing the language so that it can't be misused by bad pr= ogrammers - instead we should be designing it so that competent programmers h= ave the tools that they want. And yes, not everyone will need/want this piece of functionality, but for th= e people who do want it, saying that they can't have it because it might be m= isused seems illogical to me.=20 cheers Dan=