On Wed, Feb 23, 2011 at 4:35 PM, Martin Scotta <martinsco...@gmail.com> wrote:
>  Martin Scotta
>
>
> On Wed, Feb 23, 2011 at 7:12 AM, Ben Schmidt
> <mail_ben_schm...@yahoo.com.au>wrote:
>
>> Are you suggesting this as an enum member function, or just a regular
>>>> function in any old class?
>>>>
>>>
>>> "Enum member funcion"? How much it should be like a class before you
>>> call it a class?
>>>
>>
>> Exactly. It's crazy. If you want a 'member function' use a class, not an
>> enum.
>>
>
> why not supporting methods for enum values?
> developers will need that, and by providing type hinting, they will just
> create the logic somewhere else...

why would developers need this? can you elaborate with some real-life scenario?
I thought enums are just strong-typed constants


-- 
Alexey Zakhlestin, http://twitter.com/jimi_dini
http://www.milkfarmsoft.com/

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

Reply via email to