On Wed, Jul 8, 2009 at 10:13 PM, George Antoniadis<geo...@noodles.gr> wrote: > On Tue, Jul 7, 2009 at 3:52 AM, Ilia Alshanetsky <i...@prohost.org> wrote: > >> Last week or so there was a fairly detailed discussion on the internals >> list regarding type hinting based on my original patch. Since then the patch >> has been revised to address the major concerns that were identified >> (breakage of binary compatibility) as well extended with additional >> functionality (object hint, type casting, reflection support, etc...). >> >> The final patch is available here: >> http://ilia.ws/patch/type_hint_53_v2.txt >> The test suit is available here: >> http://ia.gd/patch/type_hint_tests.tar.bz2 >> >> I would like to ask all developers to voice their opinions of whether it >> makes sense to add this to 5.3 or to throw it away (either one is fine btw). >> To keep the process simple & flamewar free, please restrict yourself to +/- >> (1/0), next week monday I'll run a tally of the votes and based on the >> result we can determine how to proceed further. >> >> Ilia >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > +1 >
Hi List, I've been watching this thread silently and reply now just to let you all know how i, as a php developer (as in writing php scripts), would like to see this feature to get in php. I personally would be highly in favor of adding type hinting/casting BUT with the benifit that php actually becomes faster if you do things like that. Afterall you can use way more effective c code if you know what you expect right? As for the version to include type hinting/casting. I would say as soon as possible but i also see a big issue comming up if it's added in, lets say, 5.3.1 or 5.3.2... it makes no sence that a major php version that got released just over a week ago (5.3) doesn't have a big feature like this and a minor version would include it.. That's somewhat odd. I would say: make a php version between 5.3 and 6.0 that introduces syntax changes and make that version (in terms of syntax) backwards (5.3) and forward (6.0) compatible. If a 'swap' version is going to be introduced then do it this year! don't wait to long with it because it will take at least one more year before it's on the majority of web servers. A sad side effect is that php 5.3 won't have a long life since (for the sake of version numbers) php 5.4 could be here this year! The way it currently stands is that this feature (just by looking at the vast +1's) is going to be in php 6.0 but who knows when that's going to be released! I bet it's not this year and i doubt it will be anywhere in 2010 so that delays the adaption of this feature by that time + the time it takes hosts to get php 6.0 (which is between 1 and 2 years) ending up in a total of 3 - 4 years if not included now or in a 'swap' version. Just my opinion. Thanx, Mark. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php