Hi Dmitry,
On Wed, Feb 5, 2014 at 3:38 PM, Dmitry Stogov <[email protected]> wrote:
> but we can write:
>
> $f = function() {return FALSE;};
> assert($f());
>
I'll use this form, if assert() does not support direct closure call.
Direct call seems cleaner to me.
assert(function() {
// Do complex assertion here.
};
Users are used to this form because of JavaScript popularity.
It's a small difference, but I hope new assert() supports this :)
Regards,
P.S. Thank you for the declare(pre/post_hook) comment. I'll look
into VM when I have time.
--
Yasuo Ohgaki
[email protected]