[PHP-DEV] Scalar type hinting

2012-02-26 Thread Samuel Deal
d be used to indicate the current system (where there is no provision for hinting at scalar types.) Previous weak typing proposal could be found here : https://wiki.php.net/rfc/typechecking I have no rights to edit the wiki and make a summary of previous arguments, so if someone could create it... -- Samuel DEAL samuel.d...@gmail.com

Re: [PHP-DEV] [RFC] Enum proposal (yet another)

2012-02-26 Thread Samuel Deal
ight be wise to maintain a wiki article to keep track of the 3 > > different levels of typing, as well as a summary of the typical > > arguments pro and con for each of the 3. If people agree that this > > would be helpful, I'm willing to dig through the archives and try to put > this together. > > > > John Crenshaw > > Priacta, Inc. > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Samuel DEAL samuel.d...@gmail.com Tél : +36 (0) 6.01.29.75.85 Adresse : 44, rue Jean Jaurès 92170 Vanves

Re: [PHP-DEV] [RFC] Enum proposal (yet another)

2012-02-25 Thread Samuel Deal
the engine from scratch. And if we start from scratch without backward compatibility, is this still PHP ? And is there a language which already works as expected? Java ? Just my 0.02$ -- Samuel DEAL samuel.d...@gmail.com

Re: [PHP-DEV] Re: internals Digest 22 Feb 2012 22:13:24 -0000 Issue 2561

2012-02-24 Thread Samuel Deal
rd would have this kind of side effect. I'll explain more the side effect: - it create a parse error - the world only is in trouble: "something_enum" or "enum_somthing" - it happens with function, method, class, interface ... names, but not variables, the "$" char save them - it happens a case-incensitive way -- Samuel DEAL samuel.d...@gmail.com

Re: [PHP-DEV] Re: internals Digest 22 Feb 2012 22:13:24 -0000 Issue 2561

2012-02-24 Thread Samuel Deal
ly fun Note that I'm assuming here that there's a base-class called Enum - it > would be nice if this implemented Iterator or IteratorAggregate, Countable, > etc. > I think it's a good way too. Both concept are complementary. We can provide a Enumerable base class for instance. Regards -- Samuel DEAL samuel.d...@gmail.com

Re: [PHP-DEV] [RFC] Enum proposal : Without type hinting first ?

2012-02-23 Thread Samuel Deal
about what kind of type hinting we want for 5.5 and 6.0 in separated threads ? Regards -- Samuel DEAL samuel.d...@gmail.com

Re: [PHP-DEV] [RFC] Enum proposal (yet another)

2012-02-22 Thread Samuel Deal
. Finally, I don't have rights for that. Tell me what you want me to do about this. I hope I haven't forgotten a question. Thanks for reading this long post. Thanks for arguing. Regards -- Samuel DEAL samuel.d...@gmail.com

[PHP-DEV] [RFC] Enum proposal (yet another)

2012-02-21 Thread Samuel Deal
Hi all, I really missed enums in PHP, So after reading I tryed to synthetise the various views. You can find a draft here : https://github.com/SamNrique/php-src/wiki/RFC-draft (I can't write on the wiki, and perhaps it's better to finish the discussion first) There's an implementation with this