Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108679 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 15741 invoked from network); 19 Feb 2020 19:11:33 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Feb 2020 19:11:33 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7D504180533 for ; Wed, 19 Feb 2020 09:27:29 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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:27:29 -0800 (PST) Received: by mail-ed1-f41.google.com with SMTP id p14so21943024edy.13 for ; Wed, 19 Feb 2020 09:27:28 -0800 (PST) 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 :cc; bh=QBuKObV7Fh1MOe51JFjF3/z/QeDAyHXplM6ocwsHN44=; b=jryLIJgVSQCmigzeGrb0W6IMVu8VvH34lYMmQjFZO5L/xKuZOF63LmvLW3mUvHcRd/ 6POdisqn3ftaysV/8B23AQ8wJrZA/AzyKNwmEP8+3jdXP9uRCbpLshJlgKGcjq0sZpdR o8d2YMxh6dDmYVbDikK+9bDv9FpsMihb4bAZZPMGXxERyKyNY5lUci2R11dVIXF6amwu dQ1GJD+O4p91baonwjTC5Og9R04IRfrgHJD06wcVK88IkNxG7xytcxW1oFn+v+lJGssh SZ7vq3IbZZ/k7Alnf0DsR35dOtht2KAmBd/le4hsYxy9hVnxYhSeDJGoToM+xFwZr0WN mW6w== 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:cc; bh=QBuKObV7Fh1MOe51JFjF3/z/QeDAyHXplM6ocwsHN44=; b=TqkhB5Lxj5hZsDnsKYYZ4tY6raIJ7nnJaB1dHMLaSTXbjKqyOYGLc3Jj04FqvyxvOo /srmUfNGCxk2ZhTAhTUm+h+qcR707PQm44RDcbSNtIwtMO35X/o/3fo1UQ3BYWOQVhDY mzhW6yz55gU+UKjQ8DgkOEZFhWUs+KHGMerMLBW2/prn9LgrMqCDIMICaGpYrpooS1X7 afINY3GU5lGJScFAa+l5iaWkQ5sI0tSiT4qLsM0S9ceEeZ49iJxAgMv0+vh2xWbQqwM/ LxY43su8s1qitzZdf3vOsyf3oD30pJeCt+aoDGUIrm2b4DjoqTusaNwiKJGOuFjXyt9b T21A== X-Gm-Message-State: APjAAAUzGw7nAMhrr8WcHyyHgpY22Bbk7TnuPoT4uF6MXj/pjFji/2xV PGD9c+ENzpNA7cvkriOLeVnwVT3ioPPSH3pUslaxURf8 X-Google-Smtp-Source: APXvYqxebGDQ21dBwWe3s2kJpnEzFz54TN6KuxzPxiq3EEkK4emh6ADxTRxMiGBK0ToGZAqvUbkDgU+7usntGZ650zA= X-Received: by 2002:a17:906:538c:: with SMTP id g12mr25582665ejo.348.1582133244654; Wed, 19 Feb 2020 09:27:24 -0800 (PST) MIME-Version: 1.0 References: <1586E4D0-B327-46A1-92C3-F9E2F89E33DB@newclarity.net> In-Reply-To: <1586E4D0-B327-46A1-92C3-F9E2F89E33DB@newclarity.net> Date: Wed, 19 Feb 2020 18:27:07 +0100 Message-ID: To: Mike Schinkel Cc: Rowan Tommins , PHP Internals Content-Type: multipart/alternative; boundary="00000000000008fa6f059ef11a14" Subject: Re: [PHP-DEV] New PCRE function From: george.banyard@gmail.com ("G. P. B.") --00000000000008fa6f059ef11a14 Content-Type: text/plain; charset="UTF-8" On Wed, 19 Feb 2020 at 18:15, Mike Schinkel wrote: > > On Feb 19, 2020, at 12:10 PM, Rowan Tommins > wrote: > > > >>> On Wed, Feb 19, 2020 at 4:20 PM David Rodrigues < > david.proweb@gmail.com> > >>> wrote: > >>> > >>>> Maybe you can set all this messages as lowercase? That way we can use > it > >>>> more easily. > >> > > > > > > > >> On Wed, 19 Feb 2020 at 16:50, Mike Schinkel > wrote: > >> > >> I am however influenced by Go which specifies that all error messages > >> should be lowercased for the exact reason that David suggests. > >> > > > > > > Like Nico, I'm not sure what lowercase is easier for. Can either of you > > expand on the reasoning / use case? > > > From 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 > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php But that's Golang's policy, so either we change all error messages to be lower case or we keep it consistent with what PHP currently does. Moreover, I'm not sure I see a massive benefit in having it in lowercase (especially just one random function which behaves not like others) Best regards George P. Banyard --00000000000008fa6f059ef11a14--