Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82514 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28048 invoked from network); 12 Feb 2015 07:05:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Feb 2015 07:05:35 -0000 Authentication-Results: pb1.pair.com header.from=pajousek@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pajousek@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.51 as permitted sender) X-PHP-List-Original-Sender: pajousek@gmail.com X-Host-Fingerprint: 209.85.216.51 mail-qa0-f51.google.com Received: from [209.85.216.51] ([209.85.216.51:36169] helo=mail-qa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/A1-13750-FB05CD45 for ; Thu, 12 Feb 2015 02:05:35 -0500 Received: by mail-qa0-f51.google.com with SMTP id i13so6354453qae.10 for ; Wed, 11 Feb 2015 23:05:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zjfHpB7yNuC96VspH2lU3p2HC6ZzPzH7b9ZpxAmN+hs=; b=v4031bLMv/556lMoICdAII79ExDQgMtQkElLxz7vf7WEFsWlufho9epRcleaIyayxs hKeEdnOMIR78NMoivZhZ2J6zHevxaQipUu5j2fZNqLzC6QX/5hfsi5VBR4oQrLLx0X1W g84XTpUjTBAst2rte0YsO8L4sFqjGebZujfX0V4tFWSB+Ma9Y4mUG+rE608EKVcx4b61 mqHIJXXyYPYsbpzuyEv27i/6NZNGKZ+0trHWhk5UWOUzQIKB0U+98M6BNMzdOznt+9zn YlMSEbtj2pP4uJICkWozh7k7bKwPMjmpgbG2lAdq6CIx7BJHvPwuY/n6T7CCSLfe+S0U ZBag== MIME-Version: 1.0 X-Received: by 10.140.85.211 with SMTP id n77mr6581141qgd.17.1423724732635; Wed, 11 Feb 2015 23:05:32 -0800 (PST) Received: by 10.96.66.201 with HTTP; Wed, 11 Feb 2015 23:05:32 -0800 (PST) In-Reply-To: <61E01A7C-C5C8-447F-A8FA-E12A18E847CA@ajf.me> References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> <54DAF884.7000508@lerdorf.com> <203e611c8e0b03568a868b8d931aec37@mail.gmail.com> <61E01A7C-C5C8-447F-A8FA-E12A18E847CA@ajf.me> Date: Thu, 12 Feb 2015 08:05:32 +0100 Message-ID: To: Andrea Faulds Cc: "guilhermeblanco@gmail.com" , Zeev Suraski , Rasmus Lerdorf , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: pajousek@gmail.com (=?UTF-8?Q?Pavel_Kou=C5=99il?=) On Thu, Feb 12, 2015 at 1:13 AM, Andrea Faulds wrote: > > A number (or numeric, or num, or some other name) type hint is something I plan to propose in a future, follow-up RFC. > Hello, wouldn't polymorphism (via method overloading) solve the use cases and be much more useful in the long run than introducing a something that's not a type into type hints? Regards Pavel Kouril