What is new in PHP 5.3 for PHP amateurs?
webdigi.co.uk
webdigi.co.uk
It does look cool with all these new features, I'm just not sure if it'd be a slight waste of my time, since I already know a language which works well for the web…?
Blog\save() is one of them
Using the dot as concatenator is another one.
And there are hundreds that haven´t been touched because of fear of backward compatibility uprising.
Unless, of course, you manage to make it popular as the original (just remember to maintain backward compatibility with thousands of libraries!)
I don't think many have taken this path - GWT has not exactly taken the developer community by storm. Even minimal approaches (e.g. QT extending C++ syntax to deal with signals and slots) is considered unacceptable by many.
Maybe that concern is invalid and we'll quickly adjust. Since this is what the PHP folks have decided, we'll soon get the chance to find out.
When scanning code, you often use "landmarks" to find your way about. This is why indentation is so useful. But this is also used on a smaller level. When seeing a comma, you usually expect to find something else after it, just because that's what you're used to.
The same can hold for backslashes. Personally, I "feel" that backslashes are an escape character to such a degree that to see one without an escaped item after it, feels like a syntax error.
Now, I'm not arguing that this is a terrible choice of the PHP folks - at least we finally get namespaces - but I do understand how some people find the backspace an irritating choice.
So rather than simplifying the language, they're making it more complicated (especially by choosing the escape character). It's just dumb.
You seem surprised.
I wish someone would write a PHP parser with a Ruby-like syntax. Obviously the more powerful features of Ruby would still be missing, but just having a more readable syntax would be a nice improvement.