Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76139 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38302 invoked from network); 25 Jul 2014 19:57:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2014 19:57:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.171 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 209.85.220.171 mail-vc0-f171.google.com Received: from [209.85.220.171] ([209.85.220.171:42931] helo=mail-vc0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/0B-08559-996B2D35 for ; Fri, 25 Jul 2014 15:57:14 -0400 Received: by mail-vc0-f171.google.com with SMTP id hq11so8225424vcb.2 for ; Fri, 25 Jul 2014 12:57:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:from:mime-version:in-reply-to:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=UKUM1s/Bi9pg7K3eMm31zBooRxFLtA2raKvdTrUF2m8=; b=ZSUoR5WrZytV+N+j4TwK0xyK8ewe5+9Wx6btM1GOZETSjZIck/ytLyq90DadSA7xbA UHmzl2flYb5imbB70/nHgj0m0vv6gGfWv5KTZLKknZGbJ1LERRHfNjzv0IDfmKPAzDHg asEKLW465moq28NlvABrbg6ZcCvqWYEOTCxS5sy5yvM89J19UmBy6ebSI+uEcSssiT8d /GvZ/mQ/7IAeZEkP4bd/l0MgxPxE6viroqBz0GxJ4SDc/ZA2rhanNp4Qt0N838UglUBN Wf3Biup3xyDTeXIRrYd/KPMfLPLlw/G+wzRTSYC0hB1JFKiRFZvETWSgmvfP8J0wxfGF fL6A== X-Gm-Message-State: ALoCoQldE+eb+rjCsDtmhwTp+vtBmO3njx/X4773qKBEnSqwm0dqpm+GN1+U1s8XXql7rQG+d29aoqfJLeXTtzTBJ4E3nceke30fhmA1S5xA7XLWOVhnFV7HVEEdRcJk+ffp+OSaOq1Y X-Received: by 10.52.34.46 with SMTP id w14mr4343278vdi.64.1406318237436; Fri, 25 Jul 2014 12:57:17 -0700 (PDT) References: <20A80B2E-42BB-486F-8F83-A6FDBEBA4056@ajf.me> <5B708D89-B208-4644-BC89-1B7AE98A99BA@ajf.me> <6A40E21F-D265-4ADC-AD79-4EDB7AB45A01@ajf.me> <53D2AE01.8020806@sugarcrm.com> <253874AE-F389-4357-8FBD-7135C02BD797@ajf.me> <53D2B2CF.5060705@sugarcrm.com> Mime-Version: 1.0 (1.0) In-Reply-To: <53D2B2CF.5060705@sugarcrm.com> Date: Fri, 25 Jul 2014 22:57:17 +0300 Message-ID: <7249943256760790110@unknownmsgid> To: Stas Malyshev Cc: Andrea Faulds , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening) From: zeev@zend.com (Zeev Suraski) > On 25 =D7=91=D7=99=D7=95=D7=9C 2014, at 22:41, Stas Malyshev wrote: > > Hi! > >> The point of this RFC is to strike a compromise that is generally >> useful rather than helping one specific use case (strict hints) or >> another (casts). > > What you call "compromise" is the inconsistency - it's not strict > typing, it's not weak typing, it's half that and half this without any > apparent principle uniting them but arbitrarily constructed table, to > which anybody using it would have to constantly refer to figure out why > their code is breaking. Well put. Zeev