3 ms·
Interesting rant. Some of the things the OP takes as disappointing, or as a design flaw, I see as a good thing. I've no problems with string concatenation. In
by trebor 13y ago
Interesting rant. Some of the things the OP takes as disappointing, or as a design flaw, I see as a good thing.
I've no problems with string concatenation. In fact, I consider overloading + as a concatenation operator to be risky in a duck-type environment. You could, conceivably, concatenate two variables when you meant for a mathematical operation to occur just by the type of the first variable.
I find things like $var->$foo and $var->{'duck_' . $i}() to be very powerful and good. Dangerous in the hands of an amateur, yes, but very effective when you know what you're doing.
- fein 13y agoI always find the string concat operator argument a little hilarious. It's just '.=', one extra character that somehow merits 1000's of word written on how much it sucks. And being able to do $myvar(), or $$myvar(), or $$myvar[0](), etc is absolutely awesome. Programming in general is dangerous in the hands of an amateur; I'm just happy that I have the freedom to make these mistakes. In regards to the require/ include operation... spl_autoload, and additionally PSR-0, exists for a reason.