On Thu, Feb 6, 2014 at 6:10 AM, Yasuo Ohgaki <[email protected]> wrote:
> On Thu, Feb 6, 2014 at 5:49 AM, Yasuo Ohgaki <[email protected]> wrote:
>
>> I agree, some thing like this is needed to call closure or pass arguments
>> to assert() then call.
>
>
> If we allow to pass arguments, it would be something like
>
> assert(
> function($arg1, $arg2) {
> return $arg1 > $arg2;
> },
> 'Do not pass bad value',
> [$arg1, $arg2]
> )
>
Since we don't have 3 parameters signature for assert() now
assert(
[$arg1, $arg2],
function($arg1, $arg2) {
return $arg1 > $arg2;
},
'Do not pass bad value'
);
is possible. Could we have this?
Regards,
--
Yasuo Ohgaki
[email protected]