Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76716 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59690 invoked from network); 20 Aug 2014 05:52:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Aug 2014 05:52:09 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.182 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.182 mail-vc0-f182.google.com Received: from [209.85.220.182] ([209.85.220.182:34788] helo=mail-vc0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/E0-52018-68734F35 for ; Wed, 20 Aug 2014 01:52:06 -0400 Received: by mail-vc0-f182.google.com with SMTP id hy4so8775825vcb.27 for ; Tue, 19 Aug 2014 22:52:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=9+PSbb+CgHmy0s64GFqWJQ6nKveZOWQDJWn1L+RdsdA=; b=I5tXFjps3f0qwzLAW7iyOmOKizHLIUbkr0JlBKPYAflA4fEKmTqfC105vqowVq0eRZ pMYfKpRPxTp69ICW2/jw5urw2WsijdbJ/pr9JJmw+GKRbCGYjQ3IormdXx6h9IuwyqbC 6MveYYer2oHgFk8fAM2M/nLsZO2rCUo3Z3THwUL+anEeMcjHRbghzljaX8PpAHdPdmVm JaEhwS7sRAYoeMgJ48Kew8HYV5Q7Uo63xlUuA+looCfN1MP2Y4pjjhyS6SmqzV4ZXFGe U85gqGbiC7+ipuVwA00RjMTe2w3KXBf5yLB1Jv+dljwa7tcP+VEKkIfFfM9nhpMLhWEr hCIA== X-Gm-Message-State: ALoCoQk8INK7+733l+Ol7uZ8Py0X2Wd7h5axaycVLkHZ9Ip9g882twIC7wpGLI7BrMslBuLslJqlWyLigeKKtruCkJeWXaSNQA+5qJS6wu3EIuTo0ThlXPCWM8wRhMchZf2P3G7yft22 MIME-Version: 1.0 X-Received: by 10.52.129.165 with SMTP id nx5mr22091068vdb.25.1408513923728; Tue, 19 Aug 2014 22:52:03 -0700 (PDT) Received: by 10.52.110.170 with HTTP; Tue, 19 Aug 2014 22:52:03 -0700 (PDT) In-Reply-To: References: <88F3B0AF-786C-43BA-AD39-3D8B77D13B2F@ajf.me> Date: Wed, 20 Aug 2014 09:52:03 +0400 Message-ID: To: Sara Golemon Cc: Andrea Faulds , PHP Internals Content-Type: multipart/alternative; boundary=bcaec529a00715dcb6050109345e Subject: Re: [PHP-DEV] [RFC] Integer Semantics From: dmitry@zend.com (Dmitry Stogov) --bcaec529a00715dcb6050109345e Content-Type: text/plain; charset=UTF-8 1) INF conversion to zero seems wrong. May be +INF should be converted to MAX_LONG and -INF to MIN_LONG? 2) Negative shifts would be useful, as Sara mentioned. 3) a bit unrelated, but it also may make sense to introduce a logical right shift operator (>>> in Java) the rest seems fine, patch looks OK. Thanks. Dmitry. On Wed, Aug 20, 2014 at 8:05 AM, Sara Golemon wrote: > On Tue, Aug 19, 2014 at 3:36 PM, Andrea Faulds wrote: > > https://wiki.php.net/rfc/integer_semantics > > > In a perfect world, I'd rather see "<< -X" be equivalent to ">> X", > but since we do something very different currently, I think your > approach of throw an error and ask questions later seems appropriate. > The other ones all sound inarguable. > > +1 > > -Sara > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --bcaec529a00715dcb6050109345e--