Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80594 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82553 invoked from network); 15 Jan 2015 21:19:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2015 21:19:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=ua.san.alex@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ua.san.alex@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.172 as permitted sender) X-PHP-List-Original-Sender: ua.san.alex@gmail.com X-Host-Fingerprint: 209.85.213.172 mail-ig0-f172.google.com Received: from [209.85.213.172] ([209.85.213.172:48609] helo=mail-ig0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/14-61348-3CE28B45 for ; Thu, 15 Jan 2015 16:18:59 -0500 Received: by mail-ig0-f172.google.com with SMTP id l13so123860iga.5 for ; Thu, 15 Jan 2015 13:18:56 -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=yl6IAqiKkXKcea8O8I3CZ+vmWpI9RpNzbryox5wJqUg=; b=LbrTKkatIuXGPI83cmVlc9c/gp+dcmt7f8ArfRUw9xJwNgFBOfE6+dGk+d+VAlppMk ZttEiX8qkF9F8r+1I0pNHjPCeC9XlceQvXgPnoJqGLrWA9H/u1QQReDlxgbILi8NJmYi 96AOJmjo2pG94ndl2Ns84AyBhwThMDvStZ4831ZIs5G2E3buNgYn0cKTCwhLwG/kGLEi SinAJmhQWXz3WdVbgdverJjp1YRLn5bktFx8Z84C+seeap5FIRB6HF0ybRYnkIKWqjPD 0dcvkoX1I8dzifFsy2Y0FSvgxSv9m7K3kISYbOeYgIcuP6G3/o0VLxzrUDLY5qlHXMBY xVMA== MIME-Version: 1.0 X-Received: by 10.50.142.106 with SMTP id rv10mr9019460igb.18.1421356736522; Thu, 15 Jan 2015 13:18:56 -0800 (PST) Received: by 10.50.93.3 with HTTP; Thu, 15 Jan 2015 13:18:56 -0800 (PST) In-Reply-To: <20150115205902.802BC26139A@dd15934.kasserver.com> References: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> <4E2073DE-0951-498C-97BB-DDAC094F11FA@ajf.me> <9a033dd1f223f854e760924d118ab812@mail.gmail.com> <2ae0164cb9b9bf1c974d7a3c60af0466@mail.gmail.com> <6105ea99002e634373c09685310e26a6@mail.gmail.com> <8BABA306-12CE-4568-98F3-419A1557F61B@ajf.me> <20150115201654.4674326139A@dd15934.kasserver.com> <20150115205902.802BC26139A@dd15934.kasserver.com> Date: Thu, 15 Jan 2015 23:18:56 +0200 Message-ID: To: Thomas Bley Cc: internals Content-Type: multipart/alternative; boundary=001a11c3d13a612e27050cb76728 Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2 From: ua.san.alex@gmail.com ("S.A.N") --001a11c3d13a612e27050cb76728 Content-Type: text/plain; charset=UTF-8 The main advantage of the two syntaxes: 1. Strict function bar(int $num){} 2. Weak function bar((int) $num){} Any junior-middle PHP developer, seeing this syntax in the code can understand how it works, without studying the documentation and without your complex conversion tables. Explicit is better than implicit, is the motto Python, here it is very relevant. --001a11c3d13a612e27050cb76728--