Posted: Mon May 01, 2006 6:31 am
I can't imagine a PHP without the dollar sign. That's how the language works...ole wrote:Don't replace it with anything. Why do we need a dollar in front of every variable? It seems to make the whole language a lot more symbolic and harder to read (not to mention type).The only reason i can imagine would be aesthetics, and that doesn't seem like a good criterium.
Here's an example that would be tricky (or undefined) to understand without the leading $ for a variable name:
Code: Select all
echo = "hello";
echo "john";
echo echo;But with PHP4 and PHP5 and (not very) soon PHP6 we already know that the legacy version doesn't die out...ole wrote: No a good version and a backwards compatible legacy version that would, yes, ultimately die out.
I know many 'more serious developers' (== people who use php for a living) that can live perfectly with php the way it is now.ole wrote:People who use PHP for a living and need a more structured and standardized language.How would you define 'more serious developers'?
And what would their needs be?
In my experience, most of the 'more serious developers' wishes are ignored by the php-core team.. The only logical action would be that those 'more serious developers' make their own language and use that instead... I'm sorry, but i don't really see which flaws you've outlined that would stop 'more serious developers' from making this language.ole wrote:Because of the flaws I've outlined.Why would we have to change PHP to suit their needs?Since they're more serious developers, can't they make it theirselves instead of harassing us with it?
I was talking about the 'more serious developers' you mentionned. No need to take this personal.ole wrote: And I'm not harassing anyone this is just a discussion. If you feel harassed unsubscribe from the thread.
It would be possible to output html without htmlentities.. All html in a file (outside php parsing mode) can be outputted as is. And if one would need to output something as html, he would have to use an extra parameter echo($msg, $htmlentities = true)...ole wrote:Errr...so you wouldn't actually be able to output any HTML just HTML entities?!since the default content-type for php is text/html i would expect the default output for echo/print calls to use htmlentities.
This way one would have to explicitely confirm that his data is ready for use as html...
(And as i wrote, i'm still considering if this would be a good thing)