Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105794 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 7167 invoked from network); 29 May 2019 14:25:46 -0000 Received: from unknown (HELO mail-ua1-f48.google.com) (209.85.222.48) by pb1.pair.com with SMTP; 29 May 2019 14:25:46 -0000 Received: by mail-ua1-f48.google.com with SMTP id r19so772968uap.5 for ; Wed, 29 May 2019 04:35:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=R4fc4t0rdNyjGVRFwBFEveiOk1B7EQtinPIMypmV1/Q=; b=VBdkBa8DZYaZT9NteaflVyKvH/OyoK3PrzbBQlV+0oKz3YxqXhRLsRrZoXqelidN// 8py+cJyPMq8WTDTg2bEZto7I1MMPBdNsFpm/qAPgDZ/gIk0Fs3931L1i8O7S3NY8h08u BYWlMvGo3ShGKTXmtss3CaXGAj84q1ZYf/xvxGnl4lgPuIn5Vv8Uif4MgStemOZxLp6y UljF8zuy+7XgV/mNEI6y7Diu4wxEXDgMa2TDQupRZh71BejKm8Lz/3lu/FNOua75SCYy LBvOVBFFNemrDHzaKAwSiGHBj5R6ldGNBvGU5DfGboxJOYp8QAJiCjN8mvQJB1kDtdFC ofvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=R4fc4t0rdNyjGVRFwBFEveiOk1B7EQtinPIMypmV1/Q=; b=LJf5mHojql69T1enG/T0c942haH/hBxZaNlQt0njfxlES8D02KKM9uVh3k32rsec1x MvF889MTBT2lr5Mex+/YIna8qcFwBaI8ID5XLCIfM9SOxJfx2KDHw8xtnqlXcnIAESUg sw3GeAtdOnBv/oz935U0/kBF4yggGes1dGMpUoOjLYXQSu2EAVS8GqEz8wA+XTuAy1OE GOcHb0E1K9FCw95qEBRi8cXmvp85ZzJfFmY4rs+pOrJdMXbye+wFr7oDn1mo3pzcpns5 XOhiLEtScnbrbTh2hciTgpsSa9OeNNE4z2SFmsPqbYqGzJT7MsSz/49hp1Cd7shX+Uv/ JY/A== X-Gm-Message-State: APjAAAUHgTg/8W0DszSmRQ9arOzABVG/pN4LFAAWL8EKLmfm7DeVPFT+ H58ilficVTovNmLUCPazJRps0U21UGalWkgGQXfp4w== X-Google-Smtp-Source: APXvYqwksnZ11espBgjLJJnhbFm/r+t1qacTfIYYZGHgh/RCtpjsSIrDUIULtRnXktR+AsqJtIdw2atjkB/po2XNRUU= X-Received: by 2002:ab0:1586:: with SMTP id i6mr44771960uae.69.1559129709250; Wed, 29 May 2019 04:35:09 -0700 (PDT) MIME-Version: 1.0 References: <1858501.VmE1D5L3rF@mcmic-probook> <39e8e5ad-6685-9406-68ac-1fb1edbeb537@fischer.name> In-Reply-To: Date: Wed, 29 May 2019 12:34:58 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="0000000000007a8de6058a052c25" Subject: Re: [PHP-DEV] Re: [RFC] Numeric Literal Separator From: george.banyard@gmail.com ("G. P. B.") --0000000000007a8de6058a052c25 Content-Type: text/plain; charset="UTF-8" I share the same concerns as Rowan Collins, and I'm really not a fan of the RFC in general. Also I think those kind of magic numbers should be constants with meaningful names, and it that case you could just compute them by adding powers of ten. E.g. DISCOUNT_IN_CENTS = 1 * 10^5 + 3 * 10^4 + 5 * 10^3; Now I'm assuming opcache would compile this into a final integer but I may be wrong on how the internals of the engine work in this case. Moreover I feel that people may misread numbers like that if people use different groupings. E.g. 1_0000_0000_0000; by skimming rapidly I could think it's a billion(10^6) when in reality it's a trillion (10^9). Even if maybe some countries are moving away from the grouping digits in groups of 4. I'll probably vote against it but that's only my opinion. George P. Banyard --0000000000007a8de6058a052c25--