Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67220 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34227 invoked from network); 30 Apr 2013 17:54:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2013 17:54:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.91 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.91 smtp91.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.91] ([108.166.43.91:52792] helo=smtp91.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/97-18873-D3500815 for ; Tue, 30 Apr 2013 13:54:05 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp4.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id C2C0B140494; Tue, 30 Apr 2013 13:54:02 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp4.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 35C94140419; Tue, 30 Apr 2013 13:54:02 -0400 (EDT) Message-ID: <51800539.7010807@sugarcrm.com> Date: Tue, 30 Apr 2013 10:54:01 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Amaury Bouchard CC: =?ISO-8859-1?Q?Johannes_Schl=FCter?= , Julien Pauli , PHP Internals References: <1367221266.2723.181.camel@guybrush> <517E9F47.4080100@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Continued try blocks From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > It's a point of view, not something the language should enforce. It is a point of view that any proper language should enforce. Languages always enforce certain style, certain ideas and certain paradigm - be it computer languages or natural languages. You can decide from now on in your language the word "gloobloobla" would mean "hello, how are you today?" but if you try to use it to communicate with other people they would think you're not well. Language is a set of conventions, and this proposal flies in the face of all conventions that are commonly used and accepted not only in PHP but in the wider world of OO and modern programming in general. We don't need to import Visual Basic mistakes decades after they were made and recognized as such. See e.g.: http://stackoverflow.com/q/11596045/214196 > You may have a lib/object/chunk of code which raises exceptions, because > its developer thought some error is not recoverable; but when you use > it, you don't want to break your program's execution. That's why you have try/catch. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227