Archive for the ‘macro’ Category

How to Make Modern PHP More Modern? With Preprocessing!

Posted on: No Comments
Let's have a bit of fun. A while ago, I experimented with PHP macros, adding Python range syntax. Then, the talented SaraMG mentioned an RFC, and LordKabelo suggested instead adding C#-style getters and setters to PHP. Aware of how painfully slow it ca...

Fun and Functional Programming in PHP with Macros

Posted on: No Comments
I was so excited about my previous article about PHP macros, that I thought it would be fun for us to explore the intersection of macros and functional programming. PHP is already full of functions, with object oriented patterns emerging relatively lat...

PHP Macros for Fun and Profit!

Posted on: No Comments
I was originally going to call this “Micro Macros with Márcio Perfectly Pragmatic Pre-Processor library”, but I didn’t think Bruno would approve… I get really excited when developers feel empowered to create new tools, and even new languages w...