Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80061 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55375 invoked from network); 1 Jan 2015 16:57:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jan 2015 16:57:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.41 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 74.125.82.41 mail-wg0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:57580] helo=mail-wg0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/AF-60454-C5C75A45 for ; Thu, 01 Jan 2015 11:57:00 -0500 Received: by mail-wg0-f41.google.com with SMTP id y19so23387810wgg.0 for ; Thu, 01 Jan 2015 08:56:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=v9apkCwTbFZo/eoNB4kNyGHHQJj/9PIsCeShOs8WMTM=; b=ERBs32YJCkrR6u6XvgbOu6ebQzEj2STGi6NJr53lwY7jYJ6IhiKV9nC0BgZqOdp23c DPV8jtsJFfGdkQVMuGXKiWoivXFac9uvvETkzsUEzPtfVuoAsxFAoavm2hBKv7GBGsHN yjYfga5Y8O/4yvZJ/27ZlV7w52eFJqKiDbJvJA1/LrNrSpzIv1du+l77Mi8lg7rvBR6G tIWhecUetGLH0EiPZuuQUl76lvpNa3C9UvSgIIGqfiYuvD9RsJ2W+3W6OfP9DtvYA3X6 V4Ap9jvvJk8RjKcMNqmuUUqeq+nnZvYPHwGnc+iH1+V86Xh2VO92mgado5T6HMMx5h2V UBbA== X-Received: by 10.194.83.98 with SMTP id p2mr142841991wjy.125.1420131417863; Thu, 01 Jan 2015 08:56:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.82.163 with HTTP; Thu, 1 Jan 2015 08:56:37 -0800 (PST) In-Reply-To: <20150101164402.EB1442605AB@dd15934.kasserver.com> References: <41D5BB0B-73AF-488E-968D-90B2878E3178@ajf.me> <20150101164402.EB1442605AB@dd15934.kasserver.com> Date: Thu, 1 Jan 2015 17:56:37 +0100 Message-ID: To: Thomas Bley Cc: Andrea Faulds , Nikita Popov , PHP Internals List Content-Type: multipart/alternative; boundary=047d7bdc87a2b23da4050b9a1c10 Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints From: ocramius@gmail.com (Marco Pivetta) --047d7bdc87a2b23da4050b9a1c10 Content-Type: text/plain; charset=UTF-8 On 1 January 2015 at 17:44, Thomas Bley wrote: > I think it is no problem to add strict parameter type hints with another > rfc (if this rfc gets accepted), e.g. function foobar(string! $str, int! > $str){} or any other syntax. > The problem is that the current proposed hints/casts are deviating from the type-hints that we are used to, therefore this particular feature should (eventually) have an alternate syntax, whereas the strict hints would just use `int`, `integer`, `string`, `float`, `bool`, `boolan` without additional chars (assuming that we will get strict hints somewhen). This will also reduce clashes with the current HHVM implementation. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --047d7bdc87a2b23da4050b9a1c10--