Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63505 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35680 invoked from network); 17 Oct 2012 12:27:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2012 12:27:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=amaury.bouchard@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=amaury.bouchard@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: amaury.bouchard@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gh0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:34314] helo=mail-gh0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 64/3B-64689-A14AE705 for ; Wed, 17 Oct 2012 08:27:06 -0400 Received: by mail-gh0-f170.google.com with SMTP id g14so2302993ghb.29 for ; Wed, 17 Oct 2012 05:27:03 -0700 (PDT) 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 :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=QXK4b/DDd6tpYINKtGhLz3ZY/7/OM3s0dtOuLVht/gE=; b=Lkjkg6m+OE7x71yIyARMFf6Cg+zpS7jfBryibsv8BotUSKS1c3c6mf+aPDLlsyon+1 Hr/yAlyTtrrhUudqjEmPUFMpKQZuB0GMxbZCmY9iYdQwqI08Rg0OXnKwuybjuswoBW89 IHS/e+vzqhGrpFlwET9tVUQDevfv+F6PNgUX7oiFpuWmd93ERagRMmxEyh+66JgV7P2a TRSwzhKgE8BVjFZOIzIwC5WgBoj7Z0rD3YJLiIn1BOiI/KYL+Ie+nuzgDkTR30TsR8uK PuRrRNkxE6l9hMRQPZoIff2KSGoS8QJe6/tETXO5SYIAw+q+uYjTcWUCn+a4bXtB48yi rFZA== Received: by 10.236.134.18 with SMTP id r18mr17179267yhi.45.1350476823462; Wed, 17 Oct 2012 05:27:03 -0700 (PDT) MIME-Version: 1.0 Sender: amaury.bouchard@gmail.com Received: by 10.147.152.21 with HTTP; Wed, 17 Oct 2012 05:26:43 -0700 (PDT) In-Reply-To: <507E918E.6090206@sugarcrm.com> References: <9570D903A3BECE4092E924C2985CE485612B6434@MBX202.domain.local> <507D133A.4040701@sugarcrm.com> <507D2FB3.3030806@sugarcrm.com> <507D3D29.9070709@sugarcrm.com> <507E918E.6090206@sugarcrm.com> Date: Wed, 17 Oct 2012 14:26:43 +0200 X-Google-Sender-Auth: fGBEtUl7tAkJ4n5Kd6BuW5lwChQ Message-ID: To: Stas Malyshev Cc: Nikita Popov , Levi Morrison , Clint Priest , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=20cf303a360b57021504cc406366 Subject: Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2 : Typehints / Accessor Syntax From: amaury@amaury.net (Amaury Bouchard) --20cf303a360b57021504cc406366 Content-Type: text/plain; charset=ISO-8859-1 2012/10/17 Stas Malyshev > No, you don't get an error. You'd get an error in compiled language. In > dynamic language, your client gets an error when his site is launched > and instead of happy launch his users get white screens. To avoid that, > you'd need to add checks - or just ship it as is and hope your unit > tests were as good as you hoped they are (which they never are). I don't understand why this situation would be better without type hinting. I guess you think it's worst to code with the feeling of having a safety net (that's the feeling given by type hinting to most people) ? (no joke here, I just want to understand) --20cf303a360b57021504cc406366--