Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80062 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57871 invoked from network); 1 Jan 2015 17:00:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jan 2015 17:00:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.199 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.199 imap11-2.ox.privateemail.com Received: from [192.64.116.199] ([192.64.116.199:53140] helo=imap11-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/40-60454-A4D75A45 for ; Thu, 01 Jan 2015 12:00:59 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 81A048800A2; Thu, 1 Jan 2015 12:00:55 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap11.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap11.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Q9MZ0pixZBb3; Thu, 1 Jan 2015 12:00:55 -0500 (EST) Received: from [192.168.0.13] (unknown [94.13.96.117]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 8BE258800D5; Thu, 1 Jan 2015 12:00:53 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: Date: Thu, 1 Jan 2015 17:00:21 +0000 Cc: Thomas Bley , Nikita Popov , PHP Internals List Content-Transfer-Encoding: quoted-printable Message-ID: <36176A3A-587C-41F7-BD6E-1475C5E39A71@ajf.me> References: <41D5BB0B-73AF-488E-968D-90B2878E3178@ajf.me> <20150101164402.EB1442605AB@dd15934.kasserver.com> To: Marco Pivetta X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints From: ajf@ajf.me (Andrea Faulds) Hey Marco, > On 1 Jan 2015, at 16:56, Marco Pivetta wrote: >=20 > 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). I wouldn=E2=80=99t say it=E2=80=99s really such a great deviation. We = use the same syntax for scalars and non-scalars in the manual. > This will also reduce clashes with the current HHVM implementation. HHVM doesn=E2=80=99t have scalar type hints for PHP. Hack does, but Hack = isn=E2=80=99t PHP. Thanks. -- Andrea Faulds http://ajf.me/