this one looks much more intuitive.

Tyrael

2009/7/2 Ford, Mike <m.f...@leedsmet.ac.uk>:
>
>
>> -----Original Message-----
>> From: Lukas Kahwe Smith [mailto:m...@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
>
>    function func(int $i)
>
> for strict type checking, and
>
>    function 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
>
>  --
> Mike Ford,  Electronic Information Developer,
> C507, Leeds Metropolitan University, Civic Quarter Campus,
> Woodhouse Lane, LEEDS,  LS1 3HE,  United Kingdom
> Email: m.f...@leedsmet.ac.uk
> Tel: +44 113 812 4730
>
>
>
> To view the terms under which this email is distributed, please go to 
> http://disclaimer.leedsmet.ac.uk/email.htm
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to