Archive for the 'Fep' Category
As I was working on the PHP classes that Fep was to map to, I realized that it was rather silly for me to re-invent an API for lists since there were already many well-designed ones in existence. In particular, I’ve found that the .NET 3.5 collections API to be particularly nice to use. Moreover, since everyone and their dog and using .NET now, it would also be familiar to most programmers. Thus, I’ve decided to use a subset of the .NET collections API for Fep collections.
Disclaimer: This is not the way Fep arrays will work. Refer to the new article on Fep collections for more information.
In this article, I’ll write a bit about how I think Fep arrays will look. Keep in mind this a work in progress and is by no means comprehensive. Without further ado…
In PHP, you define an array using the
For example, a simple array in PHP is creating like this:
$arr = array(1, 2, 3);
In Fep, this would be done like this:
arr = [1, 2, 3]
PHP bugs me. It’s a language with so many inconsistencies, it’s just screaming to be cleaned up. I’m surprised it hasn’t happened yet. That’s why I’m starting a series of articles on Fep, a cleaned up version of PHP.