On Fri, February 24, 2012 4:33 pm, Kris Craig wrote: > I hear that a lot; i.e. "If you want static typing, use Java." > > Unfortunately, that dismissive answer has not worked too well over the > years, has it? People are still clamoring for this, and I think > making > some very valid arguments that shouldn't be so derisively and > flippantly > brushed aside.
I did not mean to be flippant, and was quite sincere, so allow me to restate it: This idea has been floated many times. Sometimes, it even came with initial patches to "prove" it could be done, and was feasible. Every time, eventually, non-trivial issues were raised by Core Devs that could simply NOT be addressed by the proposer, and they realized that changing PHP at such a fundamental level was, indeed, a non-starter. Or at least a non-finisher. :-) I only meant to suggest that if you seriously WANT these features in your language, switching to Java and JSP will give them to you, without the pain and suffering of a TON of work that history has shown will 99.9999% sure end in failure. I am, again, not being flippant, nor trying to claim that PHP is not an evolving language. I am, still, stating that the probability of it evolving in this direction, after it has been tried and failed so MANY times in the past, is incredibly unlikely. Examine the historical record, and the many proposed patches / changes / ideas, and I sincerely believe you will come to the same conclusion. If you really think you can pull it off, despite the historical evidence, I suggest you start to make a patch to do so, and find out just how much you are biting off to chew. In essence, you will effectively be re-writing Java / JSP or something similar, while trying to maintain compatibility with PHP and PHP internals that rely extensively on dynamic typing. To bowlderize Clemens (?) with regard to typing: "Strict is strict, and dynamic is dynamic, and never the twain shall meet." -- brain cancer update: http://richardlynch.blogspot.com/search/label/brain%20tumor Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FS9NLTNEEKWBE -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php