Closed netzhuffle closed 11 years ago
Another idea, how we could use ArrayAccess:
Today: $tf->test(function($tf) { / … / }); $tf->test("Testing the add() method", function($tf) { / … / });
Idea: $tf[] = function($tf) { / … / }; $tf["Testing the add() method"] = function($tf) { / … / };
Not that beautiful, but easy to understand. What do you think?
As you said, not that beautiful. This won't be implemented.
Another idea, how we could use ArrayAccess:
Today: $tf->test(function($tf) { / … / }); $tf->test("Testing the add() method", function($tf) { / … / });
Idea: $tf[] = function($tf) { / … / }; $tf["Testing the add() method"] = function($tf) { / … / };
Not that beautiful, but easy to understand. What do you think?