Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44674 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63652 invoked from network); 3 Jul 2009 01:16:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jul 2009 01:16:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.224 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.220.224 mail-fx0-f224.google.com Received: from [209.85.220.224] ([209.85.220.224:54234] helo=mail-fx0-f224.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 83/F1-53420-5FB5D4A4 for ; Thu, 02 Jul 2009 21:16:37 -0400 Received: by fxm24 with SMTP id 24so2057489fxm.23 for ; Thu, 02 Jul 2009 18:16:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=LUFqdW0Z1vflayjC+EmtGf48gwGxYkGyhHF6bhngJU8=; b=PHG0iTtWs8s7kubUckOrBRCBkbwcviAdRbAVmEFwfPWyLPL+c6Wi131cPqIohMCVMI RWFqDNh2fn/hPoGS1IbJRK4P0hy8WJulg4F6AikFRG7Qv+Jo/TU5Upvv0mShsSAvebkH v7RaQ26jN7nW1usa+bR0kupx6JUv9mmheSawY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:cc:content-type :content-transfer-encoding; b=TL0ldyVazP9fyaJAnZ5v9gKIfRBLqjsNrQVq0IXUt0SNYvcI5I6i5tbOjE4amATyMO urnAxGapR8q7Rrd3ELL/7dx0lI6YprTV/qYKWskq0WFb2Pz5EifzmFThV2pzCD8ZQGkJ 5tFwNKLfQMSkSgb44JsU1MIIdXSINg6xV4DG0= MIME-Version: 1.0 Sender: tyra3l@gmail.com Received: by 10.239.163.146 with SMTP id p18mr69546hbd.52.1246583794137; Thu, 02 Jul 2009 18:16:34 -0700 (PDT) In-Reply-To: <93ED589E60BA254F97435FE6C97F2C6702B925DD@leedsmet-exch1.leedsmet.ac.uk> References: <85073B28-671D-4A8F-B2D6-5704E3E180BB@ilia.ws> <89868409-EBAC-47DE-8D6D-0DCD88DE9DE6@ilia.ws> <67163A6A-9C8F-4F59-82A4-0B46A2EBEAE9@pooteeweet.org> <93ED589E60BA254F97435FE6C97F2C6702B925DD@leedsmet-exch1.leedsmet.ac.uk> Date: Fri, 3 Jul 2009 05:46:34 +0430 X-Google-Sender-Auth: 8f716fe5bfaaa1e7 Message-ID: Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: Flexible type hinting From: info@tyrael.hu (Ferenc Kovacs) this one looks much more intuitive. Tyrael 2009/7/2 Ford, Mike : > > >> -----Original Message----- >> From: Lukas Kahwe Smith [mailto:mls@pooteeweet.org] >> Sent: 02 July 2009 14:05 >> To: Ilia Alshanetsky >> Cc: Paul Biggar; PHP Internals; Derick Rethans; Stanislav Malyshev; >> Hannes Magnusson >> Subject: Re: [PHP-DEV] Re: Flexible type hinting >> >> >> On 02.07.2009, at 15:02, Ilia Alshanetsky wrote: >> >> > Personally, I am uncertain about +int or -int in general, IMO that >> > compromise will eventually be identical to numeric an cause >> endless >> > confusion for the users between (+/-)int and int. The reason I >> used >> > a completely different name is to prevent confusion. >> >> >> I do not see the risk for confusion as being high. >> Like I said, I havent made up my mind on this proposal, however for >> now Paul mainly asked for feedback in the general concept, not >> necessarily on the syntax. > > Interesting discussion. Not sure where I stand on this one, but I > definitely don't like the [+-]int syntax. Even before Paul's proposal > came out, though, I was thinking that I'd want to consider leveraging an > existing well-understood syntax, so I could write > > =C2=A0 =C2=A0function func(int $i) > > for strict type checking, and > > =C2=A0 =C2=A0function func((int)$i) > > for coercion aka casting (although now I've seen it written down I'm not > so sure! ;). > > I don't see the need for another option beyond the current > syntax/behaviour -- in my opinion, anything else is documentation and > should be treated as such. > > > Cheers! > > Mike > > =C2=A0-- > Mike Ford, =C2=A0Electronic Information Developer, > C507, Leeds Metropolitan University, Civic Quarter Campus, > Woodhouse Lane, LEEDS, =C2=A0LS1 3HE, =C2=A0United Kingdom > Email: m.ford@leedsmet.ac.uk > Tel: +44 113 812 4730 > > > > To view the terms under which this email is distributed, please go to htt= p://disclaimer.leedsmet.ac.uk/email.htm > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >