Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105485 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 89067 invoked from network); 28 Apr 2019 20:45:53 -0000 Received: from unknown (HELO NAM02-SN1-obe.outbound.protection.outlook.com) (40.92.5.33) by pb1.pair.com with SMTP; 28 Apr 2019 20:45:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FuPZaR5sxmV5j2LT11/PYk10+/9JJgp4vn2nA1T9oc8=; b=p2hLoTGlt2roncFbalKxCumPoaY7FTaxatuXN94qicz1/7C/AnwoBcY+6KYZ0I/B4M0JPDMpTC+oMZxrJs3T87HDCE04YZvo4bL7kVRhHQm2ps+kL52dCxOKs3XWCP7kCMBqca5bYzPi2Cs2Wlg7MWCf8DK3WSPVL8X6s5STmcyWc+WHFDnZ9nbzDOGxZhnd9BD1do2LJ5F136+kqP37bEnhJeIYDj+Ter2yR3+4v0sej5ROrxM9vlYVsE+3rx3p3E0LzUWcfawhCvDE3OSNqucUKY6La9JlnNKkS1hj+p8Rj2hWM/WFU/YYhbAfvZVx8YaHg+grw85qbosuQGvkpg== Received: from SN1NAM02FT016.eop-nam02.prod.protection.outlook.com (10.152.72.54) by SN1NAM02HT019.eop-nam02.prod.protection.outlook.com (10.152.73.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1835.13; Sun, 28 Apr 2019 17:47:34 +0000 Received: from MWHPR06MB2861.namprd06.prod.outlook.com (10.152.72.53) by SN1NAM02FT016.mail.protection.outlook.com (10.152.72.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1835.13 via Frontend Transport; Sun, 28 Apr 2019 17:47:34 +0000 Received: from MWHPR06MB2861.namprd06.prod.outlook.com ([fe80::48ac:7330:c53e:9ce6]) by MWHPR06MB2861.namprd06.prod.outlook.com ([fe80::48ac:7330:c53e:9ce6%8]) with mapi id 15.20.1835.010; Sun, 28 Apr 2019 17:47:33 +0000 To: Stanislav Malyshev , "bishop@php.net" , PHP internals Thread-Topic: [PHP-DEV] Revive Number Format Separator RFC Thread-Index: AQHU+7D7OGXgdVHJp0Ci/FG71ATk06ZNpzIAgAA/dgCAAwXyAIAA1mMz Date: Sun, 28 Apr 2019 17:47:33 +0000 Message-ID: References: ,<9a90b882-b6d5-a36c-20db-318c79cf5028@gmail.com> In-Reply-To: <9a90b882-b6d5-a36c-20db-318c79cf5028@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:48935CCB0F1A9492D19AA0170BE1F1320F61090FD356033E50C86F1A0564C2A6;UpperCasedChecksum:105C71527A939DAF035AD8DA0C4FE79AC5793AB3BC33325D89AC619EC015FCE8;SizeAsReceived:7029;Count:43 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [5IoJqhgc/usmw/Gxkd1UXymlnkyMwR1t] x-ms-publictraffictype: Email x-incomingheadercount: 43 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(5050001)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031323274)(2017031324274)(2017031322404)(1601125500)(1603101475)(1701031045);SRVR:SN1NAM02HT019; x-ms-traffictypediagnostic: SN1NAM02HT019: x-microsoft-antispam-message-info: +8BBo80bppC/DOtVEF9SSy/lgAaSCMkz9/dnKzpQSp0OdOgc761Wo0DNj49/XE1uUgoWIVpET+L8tMtEzB09yW4PEycvyhUiw2WrKqADzAzX4wPSFILWwMKfxu21YfVC/5XkPlONE5JnNI+5xmITFVQUXHl69FAV85fx98ScDMKNyY6ttj7HuIcO+KajbewO Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 3dc1fd2e-a2bc-4ff0-def6-08d6cc019822 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Apr 2019 17:47:33.8299 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM02HT019 Subject: Re: [PHP-DEV] Revive Number Format Separator RFC From: theodorejb@outlook.com (Theodore Brown) On Sat, Apr 27, 2019 at 10:25 PM Stanislav Malyshev w= rote:=0A= =0A= > I am not exactly against this feature, but the potential for abuse=0A= > \- like enabling people using integers for things that are not=0A= > integers and should not be stored as integers - worries me now.=0A= =0A= Based on the usage analysis Bishop did, people already use integers=0A= for number-like values (e.g. phone and social security numbers) that=0A= can be better represented in other ways.=0A= =0A= Perhaps adding the numeric separator feature can actually be an=0A= opportunity to discourage such misuse. We can add a paragraph to the=0A= RFC (and the documentation if it is accepted) that lists examples of=0A= usage that should be avoided.=0A= =0A= Ultimately there remains many legitimate uses of large numbers in=0A= code (e.g. scientific constants, unit test values, business logic=0A= thresholds, etc.), and this feature is a simple way to improve their=0A= readability.=0A= =0A= I've lost count of the number of times I've been debugging a failing=0A= test and struggling to count the number and position of digits to=0A= make sure I have the right value. This feature would save time when=0A= reading code and indeed prevent a lot of mistakes in the first place.=