Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69625 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70677 invoked from network); 17 Oct 2013 14:37:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2013 14:37:33 -0000 Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.174 as permitted sender) X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.128.174 mail-ve0-f174.google.com Received: from [209.85.128.174] ([209.85.128.174:62517] helo=mail-ve0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/5C-12663-D26FF525 for ; Thu, 17 Oct 2013 10:37:33 -0400 Received: by mail-ve0-f174.google.com with SMTP id c14so1252785vea.19 for ; Thu, 17 Oct 2013 07:37:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Gyw6BNcRMnIx8T2WVq/lu9l8GRERzqb6lNvUCytDrGc=; b=lw7BUredEqFmg2k+B1ACq1K8fUQBsbfiewzQn6HhR/itWgkrK+p/1jAnshOYpypKFx Of81GdkM4HNxSXUzir2sYpyhYNIze/0QcFmO3mP9bO2vVEFWVH32GFeIZ6LiqLVfJwp4 6uEIns2EoZI94Tl7vNjI7Omz+dSE3L9Z2Uxv7q8wgR7iisHz8OXeE0zx0XX/4GkSvQd+ uNWGXwD5fUiZwCZKWJJmcmDuIEQVVbz8x1n9024Fufj9fCyutKvi7Q15JK8HhwA1NPF5 wGd+xjbtDaUAsWZOxNVjC/LXN7syymfVmc4G9gFGXILuTzOcfqer5PBVc+HvbYzTq6DI XeaQ== X-Received: by 10.221.64.17 with SMTP id xg17mr7055708vcb.5.1382020650628; Thu, 17 Oct 2013 07:37:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.248.195 with HTTP; Thu, 17 Oct 2013 07:37:10 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Oct 2013 10:37:10 -0400 Message-ID: To: Levi Morrison Cc: Benjamin Schneider , internals Content-Type: multipart/alternative; boundary=001a1133158ef3fc7404e8f0c1c1 Subject: Re: [PHP-DEV] Proposal: Introduction of InvalidStateException From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") --001a1133158ef3fc7404e8f0c1c1 Content-Type: text/plain; charset=UTF-8 Levi, I'd love to listen your ideas/suggestions. Maybe we can implement an RFC to make it better. Without exposure to problems, there are no problems at all. I'm not saying it's perfect, but would love ideas on how we can improve it. =) Cheers, On Thu, Oct 17, 2013 at 10:33 AM, Levi Morrison wrote: > > > > I would like to propose the introduction of an 'InvalidStateException' > > into the SPL extension. Within the existing exceptions I am not able > > to find a type that would represent a state error, throwable if a > > method has been invoked at an illegal or inappropriate time. > > > > Exceptions are one part of the SPL that are a nasty, poorly thought-out > mess (no offense to anyone who worked on it; this stuff is harder than > people realize). I am -1 on simply adding another exception to our mess, > but if we can clean it up then I might support it, depending on details. > -- Guilherme Blanco MSN: guilhermeblanco@hotmail.com GTalk: guilhermeblanco Toronto - ON/Canada --001a1133158ef3fc7404e8f0c1c1--