Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82513 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24617 invoked from network); 12 Feb 2015 06:05:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Feb 2015 06:05:10 -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.223.181 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 209.85.223.181 mail-ie0-f181.google.com Received: from [209.85.223.181] ([209.85.223.181:45262] helo=mail-ie0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/31-13750-3924CD45 for ; Thu, 12 Feb 2015 01:05:09 -0500 Received: by iecat20 with SMTP id at20so9604568iec.12 for ; Wed, 11 Feb 2015 22:05:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=J+1bSemshh6MTwr+0e0dlCoLeC5Jgb3Sq113OziW/Gg=; b=SKToBx7qSzdDLFmWrNECx1RJvUKZmdAZWF4ueHvofLqV5XNF68d+xfiM613yf5ZfwI 5mVbacJpV/v2TNgoH4+7jMx3+wRm5zbAuJqoKtaBN6YCBRFFemv/BmfMLd6ZvAVpc1nZ vL0rKDJCZNywQWUAqfar+HrEj+dldDPpxDaZto7koK0oJS92YFjfFXXcslz5H8tRCc9g /pgixbJCuDUN24NWmhcGEghtIUFNzNlRRAlYLtCoRfBznQCq7sPDAAbWLMltgA5Z1eIU OCSPAQ8I92nswhxxJk0RTx7PJDHK5gDtfF1NcPtKE4uiNZII5n5opZrgOc6tnRUj8I6G ZhMQ== X-Gm-Message-State: ALoCoQkhI+Z8225cUTVez18RhI9Jyrr1P2rGRzrWZc41GiL21K8+AFNDbEkoe9iw7JoPkSzeOOWErmf7a/vgxcFDmCghvo7FYdlB9rsbh4icCDJv70FYXBkN2E4lySCy1nqvn9BlqB5V9vVE45xyYo6BT2BMYV6kww== X-Received: by 10.50.108.83 with SMTP id hi19mr1984093igb.8.1423721105133; Wed, 11 Feb 2015 22:05:05 -0800 (PST) References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> <54DAF884.7000508@lerdorf.com> <203e611c8e0b03568a868b8d931aec37@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJMIZG9mXkdirFXmuP9r5ZK3xIuzQJbJJA/AzCIQggCYWllLQKBurkXAYsw6s4B6qYCMgHjX/2GAR2J+qQBjkVFwZthMFAg Date: Thu, 12 Feb 2015 08:05:04 +0200 Message-ID: <44021d67d6709692a479516e82a77921@mail.gmail.com> To: "Sebastian B.-Hagensen" Cc: guilhermeblanco@gmail.com, Rasmus Lerdorf , PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: RE: [PHP-DEV] [VOTE] Scalar Type Hints From: zeev@zend.com (Zeev Suraski) > -----Original Message----- > From: Sebastian B.-Hagensen [mailto:sbj.ml.read@gmail.com] > Sent: Thursday, February 12, 2015 2:11 AM > To: Zeev Suraski > Cc: guilhermeblanco@gmail.com; Rasmus Lerdorf; PHP Internals > Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints > > Hi, > > 2015-02-12 0:08 GMT+01:00 Zeev Suraski : > > It gives the exact same > > value from an API author=E2=80=99s point of view. > > But not from an api-consumers point of view. I didn't claim otherwise. I am claiming that piece is significantly less important, and that its negative implications outweigh its positive ones. > Without either introducing a > new set of casting/conversion rules or changing existing behavior > (**exclusively**) 'weak' typehints may be perceived as seriously crippled= . > Maybe up to a point where the addition of them wouldn't be justified. I argued we should tweak the conversion rules. > > But unlike the current RFC, v0.1 doesn=E2=80=99t introduce an IMHO alie= n > > concept into a language that considered dynamic typing to be a core > > principle since its birth. > > It's not. PHP was always open to enforce strict typing in user created > functions. Being able to do something in custom code - and having language-level synta= x for it are a world a part in terms of condoned language principles. That's why proponents of this RFC are so much in its favor - and opponents are so much against. This new syntax would mean explosive growth and official encouragement for developers to place strict type checking throughout their code. Zeev