Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81943 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26116 invoked from network); 5 Feb 2015 16:18:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2015 16:18:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.178 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.178 mail-qc0-f178.google.com Received: from [209.85.216.178] ([209.85.216.178:42733] helo=mail-qc0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/A3-27691-2F793D45 for ; Thu, 05 Feb 2015 11:18:59 -0500 Received: by mail-qc0-f178.google.com with SMTP id b13so7142555qcw.9 for ; Thu, 05 Feb 2015 08:18:56 -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=GJXHO0BusVrSrziryfCcphMDzIKVyk4v7KHlmKa0Rmc=; b=XIUoE1G7lzU+G5QMh1RGiypkVzD//cC9QkxP/WXQbhgoq0AhWlMdGDObSg7Vtsbfzp Rod0BK6h3qYNaMo/+Dz9vIGasS4eyVO7wcxvA5gvbVFqOTHGpGO6jRE1maZUxw0YBZDW eyLgnd0HgTaTkCViMkVMW76wzcFcwKCbSYVBx1FRMGNl2+xdb9m5TLVQqmH2DWPtp9Mg QYVGZaVFT2YYQRnMsXy5c+fxjoeOMF6EzGilgVh+iHLjM2H47I1eO06Kcv7dgdZl6am9 cYTKWQCozzz9eeaM8kFT74G6uV2L0Y5g0c9zT1bTNaijKLR4CJ0nF0b0FC1e18L7i8YJ c7Tg== X-Received: by 10.224.114.209 with SMTP id f17mr9962261qaq.68.1423153136463; Thu, 05 Feb 2015 08:18:56 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.28.72 with HTTP; Thu, 5 Feb 2015 08:18:16 -0800 (PST) In-Reply-To: <023201d0415e$5731d800$05958800$@tekwire.net> References: <01d601d04146$6fbda4c0$4f38ee40$@tekwire.net> <020c01d0414b$2c3a1120$84ae3360$@tekwire.net> <023201d0415e$5731d800$05958800$@tekwire.net> Date: Fri, 6 Feb 2015 01:18:16 +0900 X-Google-Sender-Auth: BoROPrFQ9qqPSLAMAT_XO-1Wk-k Message-ID: To: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= Cc: Pierre Joye , PHP internals , Dmitry Stogov Content-Type: multipart/alternative; boundary=047d7bdc19ac28f58f050e59a99c Subject: Re: [PHP-DEV] Design by Contract From: yohgaki@ohgaki.net (Yasuo Ohgaki) --047d7bdc19ac28f58f050e59a99c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Francois, On Fri, Feb 6, 2015 at 1:11 AM, Fran=C3=A7ois Laupretre wrote: > > De : yohgaki@gmail.com [mailto:yohgaki@gmail.com] De la part de Yasuo > Ohgaki > > > We don't have to integrate DbC into phpdoc. phpdoc may have integration > of new DbC syntax. > > I think it's helpful even if phpdoc copies post/pre condition as > document. > > > > There are too many possibility for DbC syntax. > > We are better to choose something in common among languages. > > No. The more I detail the concept, the more I read alternative proposals, > the more I consider extending phpdoc is the best solution. As I explain i= n > the RFC, both concepts are closely related, and that's the only solution > I've seen so far that preserves BC. I could add that it proposes a soluti= on > to issues not even detected nor discussed in alternative proposals, like > the syntax for return value, separate check for arguments returned by ref= , > built-in type checks, etc. Before we choose an alternative syntax, I thin= k > we should have good reasons, not 'Hey, that's how it's done in D !'. If > there's a good reason to copy D or Eiffel syntax, let's adopt it, but I > haven't read any good reason so far. And D is not so widely used so there= 's > no user habit. We can copy the concept without copying the syntax. > > I think we're going too fast here. Before giving up and switching to > another syntax, can you give me a little time to present what I have in > mind. I started writing it yesterday evening and it will be ready tomorro= w > morning (UTC). Then, we can make a decision. > I didn't notice you have updated the RFC sorry. Sure, I'll read it and respond. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --047d7bdc19ac28f58f050e59a99c--