Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108678 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 13083 invoked from network); 19 Feb 2020 18:59:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Feb 2020 18:59:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 678641804E6 for ; Wed, 19 Feb 2020 09:15:23 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 19 Feb 2020 09:15:23 -0800 (PST) Received: by mail-qt1-f171.google.com with SMTP id l16so764303qtq.1 for ; Wed, 19 Feb 2020 09:15:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=bknCobiHfLRHie2oFOSCqisvFYKpwzaKEASBPV++XdU=; b=sQgcHGg56v2pVlz5l14k7GPqmqAyBkb2wSdMzgwmPr5xvbthwxjWckHNqRr/KbkfXe aUdqZtQJOP3zFn3KLmGXSEyEBsJMpP5qO1p1JBTIkvr02k+Y4IZ/r6fYSyoXIcUEWbUH jrHXdqUT6//O0bP4VVnI330r/KYssRxyBsQJDfrQB8HOtv/6vxl9ngNDzomgfenScLAa 637aB9/RPkLiX4pK3jnpdDiw7V+7l1DBaRKaactOBjeM3kkexyKEJfIEbJ1ShZFWU6p9 8spNnnzXXlLHtRtLpkSnrUC9gs1nFzKjkS2YfyKKYU5DybSt9sl9wkJdq+sp+6SWMDLr 9cng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=bknCobiHfLRHie2oFOSCqisvFYKpwzaKEASBPV++XdU=; b=ARtxexr1vc2w4qRO8xPvdcVzmUSLLCy5CsC+uypLIVOO3dXHwtgm+eGRF6dx13CB2W 8qmCll9hhL8msBH8xXPmqgDaLZM4K7Shk0r73ZERNdbJJC7JSiJqvn0JTsoPxk6/1TDh q/Rmbns1iu9CJvWx9cRUfTI0HUeKxYQNTZFNj1WMNwP+cRHFCgt9Zt8w995i/ALie/m3 LG57oX4tvtVob3eXPgA0etUvGHrjCS2PG4Gl1cUAHUxxD5YMnaIUZWLc34Vq0wl/FBKA hBi/DTgarpNRw/R+JdGq2iXUlN7/9dexVBTQosXF+O+j5a4KF13j2a9wvLgHoZAvF8e6 5auw== X-Gm-Message-State: APjAAAUu9YMI4I7d+M6L8mKCTVf1aXG8Sq0hSAOahgB+yHlmlHOwVofl XTvxYHvSZrE7TqnCAenMwjfyAy0W7GdcUg== X-Google-Smtp-Source: APXvYqzvSv0wULx0X+on197YTtwxI6tYWdwmyohkmUcvZdBp0AZSPbcnLQwrBezYWuxn3OliXsNqJQ== X-Received: by 2002:aed:2dc2:: with SMTP id i60mr22182042qtd.8.1582132521706; Wed, 19 Feb 2020 09:15:21 -0800 (PST) Received: from [192.168.1.10] (c-24-131-44-78.hsd1.ga.comcast.net. [24.131.44.78]) by smtp.gmail.com with ESMTPSA id k4sm271372qtj.74.2020.02.19.09.15.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Feb 2020 09:15:20 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) In-Reply-To: Date: Wed, 19 Feb 2020 12:15:15 -0500 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <1586E4D0-B327-46A1-92C3-F9E2F89E33DB@newclarity.net> References: To: Rowan Tommins X-Mailer: Apple Mail (2.3445.104.11) Subject: Re: [PHP-DEV] New PCRE function From: mike@newclarity.net (Mike Schinkel) > On Feb 19, 2020, at 12:10 PM, Rowan Tommins = wrote: >=20 >>> On Wed, Feb 19, 2020 at 4:20 PM David Rodrigues = >>> wrote: >>>=20 >>>> Maybe you can set all this messages as lowercase? That way we can = use it >>>> more easily. >>=20 >=20 >=20 >=20 >> On Wed, 19 Feb 2020 at 16:50, Mike Schinkel = wrote: >>=20 >> I am however influenced by Go which specifies that all error messages >> should be lowercased for the exact reason that David suggests. >>=20 >=20 >=20 > Like Nico, I'm not sure what lowercase is easier for. Can either of = you > expand on the reasoning / use case? =46rom = https://github.com/golang/go/wiki/CodeReviewComments#error-strings "Error strings should not be capitalized (unless beginning with proper = nouns or acronyms) or end with punctuation, since they are usually = printed following other context. That is, use fmt.Errorf("something = bad") not fmt.Errorf("Something bad"), so that log.Printf("Reading %s: = %v", filename, err) formats without a spurious capital letter = mid-message. This does not apply to logging, which is implicitly = line-oriented and not combined inside other messages." -Mike=