Then why don't we have these:

$i = integer(5);
$f = float(4.5);
$s = string("foo");

And what about classes? It's slightly different, what with it being a
definition rather than a specific literal value, but it produces a
definition, pseudo value if you will, so why not have:

class("MyClass", array("method", array("arguments"), "method body here"));

Of course, that woudln't make sense. We, instead, use appropriate syntax:

class MyClass {
 public function method($arguments) {
   // method body here
 }
}

Suitable, logical, appropriate code. To me, 'array()' just seems on
the verge of being (but not totally) inappropriate.

M.T.

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to