Re: Re: Opinions / Votes Needed
| From: | Nathan Rixham | Date: | Sat, 17 Jan 2009 22:02:13 +0000 |
| Subject: | Re: Re: Opinions / Votes Needed | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-286573@lists.php.net to get a copy of this message | ||
Stuart wrote:
2009/1/17 Nathan Rixham <nrixham@gmail.com>:erm need to check but gonna take you're word for it - regardless still *need* optional static types sometime please thankyouPer Jessen wrote:If it ain't broke don't fix it. I still fail to get why you're so strongly for them.Nathan Rixham wrote:why so strongly against having *optional* static typing?Tony Marston wrote:Because your desired functionality is already satisfied by other programming languages. PHP is an interpreted language with all the strengths and weaknesses that come with it. A need for static or compile-time typing is a need for a different language, honestly. /Per Jessen, ZürichIf you really *need* to used a staticly typed language then don't use PHP, and don't try to change PHP to match your needs.why not?type hinting is already there + internal functions and classes are all staticly typed, function params, return types the whole lot.Internal functions and classes are not statically typed - they check their inputs and raise errors if they're wrong, which IMHO is what all code should do.
aww man, I meant "IMHO" wasn't trying to be arrogant (but i do think it'd open php up to more users and markets) I do not think it'd cover everybodies needs though.IMHO if it was to classify all the languages (specifically server side languages for web apps), PHP has 95% of the features i need, the rest come no where near, so it's the obvious candidate to get this remaining 5% that'd make it perfect and open it up to a whole set of new users and markets. Unless it's technically impossible why not?That remaining 5% is the remaining 5% for you but you can't assume that for everyone else, and it's pretty arrogant for you to think you know what everyone wants.
At the end of the day PHP is open source and if there are features you think will be welcomed by the whole community you can either suggest them on the internals list, develop them yourself and submit patches or pay/convince someone else to develop them and have them submit patches. Just don't be surprised when you discover that your "simple" enhancements have unexpected side effects that make them anything but simple, especially when you need to maintain BC as much as possible.no doublt about it being complicated to implement, and honestly I'm close to learning c and doing it myself - may take a while though :p preference realistically goes to hoping some internals follow what I'm saying (*prays*)
Also, ignore Tony... PHP won't get better without people making suggestions, even if they turn out to be impractical or unpopular, so don't ever "LEAVE PHP ALONE"!! ;-) -Stuartlol the leave php alone comment was my fav yet - and yeah impractical and unpopular sounds like a good description - dunno why I feel it would have such a vast improvement and that php would grab a big share of java's market but I do.. something about php+flex/as3 that seems to be the future to me.. keeping these two languages pretty much inline on the OO side seems like a v wise move.. time will tell :) thanks again stut