Archive for January, 2010

Pour Some Syntactic Sugar On Me: ‘Unless’ Keyword

Let’s face it, syntactic sugar can be a very attractive feature for a language (I consider Perl to be an extremely powerful language composed almost entirely of syntactic sugar), and I think it’s about time we all started demanding the “Unless” Keyword as a counterpart to the “If” Keyword. Let me give you a pretty […]

Wednesday, January 27th, 2010

Arrays of Objects and __get: Friends Forever

In PHP, an object is always passed around as a reference, which allows one to deal with objects in a very transparent manner, since the only way to deal with a by-value copy instead of the real deal is to explicitly use the clone operator. Recently, I came upon a situation in which it was […]

Monday, January 11th, 2010