Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72298 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82144 invoked from network); 5 Feb 2014 21:18:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2014 21:18:19 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.49 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.49 mail-la0-f49.google.com Received: from [209.85.215.49] ([209.85.215.49:51304] helo=mail-la0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2A/B8-38005-A9AA2F25 for ; Wed, 05 Feb 2014 16:18:18 -0500 Received: by mail-la0-f49.google.com with SMTP id y1so788393lam.36 for ; Wed, 05 Feb 2014 13:18:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=+B4jb0uAh6MM4VsKa6rEuO3+g8UcAZnB8qd0M1M94Ew=; b=Ur+fBimQGWxuTizZ94VEyX/Tyv7GAl4P6n6nLxmb5eIl5Ctc7pRs/FcwOmmiLMko60 ji322GPmv3u8IXgI38Aj8I0xkSUfh/rKAikDxedC7tcSbJAy0W74TOqOHZB0FtntCkKx v5u0uLDB2NziROvpB2wHxFeGTIHnui194xJwfYkA/95dRRu5DqNF69KMpypZ+W5nfSAy WmsKPp9zu4X8cFS+TPdSEnv8/znXIrRI9kbg/fEKidPyRcwR+I2xJhzuC6A5MRHWeixL IBRHx4ouvkwBOJ1o1InibYF9GPXRytAm7+/vhnluQkoqRMZ5t4OxsOtQdpuxAoSkIy5a ZcKQ== X-Received: by 10.112.173.6 with SMTP id bg6mr2395881lbc.17.1391635094281; Wed, 05 Feb 2014 13:18:14 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.199.37 with HTTP; Wed, 5 Feb 2014 13:17:34 -0800 (PST) In-Reply-To: References: <52EE2B66.4040005@pthreads.org> <52F157BE.3020804@ajf.me> <52F15FD6.7060901@ajf.me> <52F1E58F.3050105@sugarcrm.com> <52F1EF12.2050705@sugarcrm.com> <52F1F675.2000600@sugarcrm.com> <52F20D8B.9000003@gmail.com> Date: Thu, 6 Feb 2014 06:17:34 +0900 X-Google-Sender-Auth: _gacbIWDqao2Ue7TETXwUdBJCrA Message-ID: To: Rowan Collins Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c239be73a2ce04f1af4b7d Subject: Re: [PHP-DEV] RE: RFC: expectations/assertions From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c239be73a2ce04f1af4b7d Content-Type: text/plain; charset=UTF-8 On Thu, Feb 6, 2014 at 6:10 AM, Yasuo Ohgaki wrote: > On Thu, Feb 6, 2014 at 5:49 AM, Yasuo Ohgaki 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 yohgaki@ohgaki.net --001a11c239be73a2ce04f1af4b7d--