Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75513 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85402 invoked from network); 14 Jul 2014 22:43:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jul 2014 22:43:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=park.framework@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=park.framework@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.49 as permitted sender) X-PHP-List-Original-Sender: park.framework@gmail.com X-Host-Fingerprint: 209.85.219.49 mail-oa0-f49.google.com Received: from [209.85.219.49] ([209.85.219.49:52172] helo=mail-oa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B5/B0-15121-EFC54C35 for ; Mon, 14 Jul 2014 18:43:10 -0400 Received: by mail-oa0-f49.google.com with SMTP id eb12so5010171oac.36 for ; Mon, 14 Jul 2014 15:43:05 -0700 (PDT) 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 :content-type; bh=eThtfYAD7bEknYO0S7wnZXeJEJ6pvYHMALkng3mKDrc=; b=l+jbF9ETf19Vrd5X9VWiof6bdlL5hVvUwiIFmD+tQ9dq6tasuXeWPwRWpRAoiI3mR0 CEB22il96eNZVEBJh4iTxNHxqRb7+LeSZI2noWX84b6+p5BhLc9zRU4A2UAaOs6eH5RC ys9xnz52P7JOlFxfDdvN9BO3VjV2+JBlUPZMWSd9B3DsInzIc4mxIwUF2UphK0C5nxtq Ncnmo6+KWuT7Op/ZGcDTAtlYcM5dVXNj2QSL1P2tnQlO+zQ3DynLg6Zzl/DRbrJvVmkb mqWaUiYoJa5G2mjsqFTEc5xsvi6EoBtHtfuzkHWoC2TQ0+tyPZ3kBXg67bGGWkkMPazj A15A== MIME-Version: 1.0 X-Received: by 10.182.245.164 with SMTP id xp4mr21164479obc.23.1405377785763; Mon, 14 Jul 2014 15:43:05 -0700 (PDT) Received: by 10.76.27.226 with HTTP; Mon, 14 Jul 2014 15:43:05 -0700 (PDT) In-Reply-To: <20140714222431.GM27743@phcomp.co.uk> References: <20140714222431.GM27743@phcomp.co.uk> Date: Tue, 15 Jul 2014 01:43:05 +0300 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=001a11c2b2eeb21b5f04fe2f037c Subject: Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening) From: park.framework@gmail.com (Park Framework) --001a11c2b2eeb21b5f04fe2f037c Content-Type: text/plain; charset=UTF-8 2014-07-15 1:24 GMT+03:00 Alain Williams : > On Tue, Jul 15, 2014 at 01:16:49AM +0300, Park Framework wrote: > > Maybe we should make two different syntax? > > > > fun(int $num, array $list) - for strict type compliance > > fun((int) $num, (array) $list) - converted to type > > +1 > > Don't forget to note that we will still retain the current syntax: > > fun($num, $list) - arguments passed as is, not type > checking/juggling > Yes, of course! --001a11c2b2eeb21b5f04fe2f037c--