Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68223 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74298 invoked from network); 19 Jul 2013 20:46:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jul 2013 20:46:07 -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.217.181 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.181 mail-lb0-f181.google.com Received: from [209.85.217.181] ([209.85.217.181:38829] helo=mail-lb0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 32/D2-13120-E85A9E15 for ; Fri, 19 Jul 2013 16:46:07 -0400 Received: by mail-lb0-f181.google.com with SMTP id w10so3731533lbi.26 for ; Fri, 19 Jul 2013 13:46: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=IgJsRPs9zb7KtoTUDp4mNttcKbDuSzg7SfO6QBi/8ic=; b=X438xdmtk2TxjaZZz1PM56zuEZvBZ9Ct4hEzXEVmk8c8AXL0Hw8ADSLo4M+VfHbsZS QJYvUnpBoM/XLKcxXGrH/tSn1hjCGuudcgVFx+j8wVPEQJjAdpqy47HbA9ujY+DSpVEK 4GztHrN1EdVOCV0Y5u0nwHGXhXQayuGICBe3L+WQ81VswgJfrvuqnyahpkZiE8qb/q1q mB53mij7Sha0ffPeir3u7bVapYiqf8O6aFA4DRzYLma/6YQPWrwyvgVKqi/oo31hZMhd 5piQHnKZHkO5q3e7y8NJOgfw+FxL7T6fN352yiad8TAhlz5mx34FZxkXo+0F8AEGnM0z WY2g== X-Received: by 10.112.205.163 with SMTP id lh3mr8123579lbc.45.1374266763093; Fri, 19 Jul 2013 13:46:03 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.4.233 with HTTP; Fri, 19 Jul 2013 13:45:23 -0700 (PDT) In-Reply-To: References: Date: Sat, 20 Jul 2013 05:45:23 +0900 X-Google-Sender-Auth: AbyBqdFhY28EElOKaIK8EAq1S9w Message-ID: To: Nikita Popov Cc: Chris London , PHP internals Content-Type: multipart/alternative; boundary=001a11c315983dac1b04e1e36a0d Subject: Re: [PHP-DEV] Feature Proposal: Allow letter decrementing From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c315983dac1b04e1e36a0d Content-Type: text/plain; charset=ISO-8859-1 Hi Nikita, 2013/7/19 Nikita Popov > I don't think we should add string decrementing due to the rather complex > logic behind it (imho the string incrementing that we have shouldn't be > there either). > Right. It is impossible to symmetric operation ++/-- for strings. Not implementing --'STRING' is a valid option. > What we *should* add though is a notice or warning in case > an increment/decrement operation fails. incdec is one of the few places > where we currently silently ignore FAILUREs, instead of throwing some > helpful error message :) > Making --'STRING' raises E_NOTICE is reasonable option. If PHP don't support, then it would better to notice users. It may be useful to spot bugs, too. Raising error might be more helpful for many users. I don't have concrete idea for --'STRING'. E_NOTICE might be the way to go. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c315983dac1b04e1e36a0d--