Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113541 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 54243 invoked from network); 15 Mar 2021 15:16:08 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Mar 2021 15:16:08 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 838351804D1 for ; Mon, 15 Mar 2021 08:09:40 -0700 (PDT) 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-Virus: No X-Envelope-From: Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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 ; Mon, 15 Mar 2021 08:09:40 -0700 (PDT) Received: by mail-lj1-f180.google.com with SMTP id y1so16653897ljm.10 for ; Mon, 15 Mar 2021 08:09:39 -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 :cc; bh=cDNUbfJfTLd8fLf9cTLx2zCztUvwqvwRoWtiV3yjpUk=; b=qMeH+6cvjrV3yIovD23Fj7ozI0T1xfhPK/+gGVelMqS8cYbuWQO8cwyWmSaoDsDeM7 LmMLlnqk/K/yQFIoiGtSTl0CLN72GwZKHC3OHS8aXnTipaB2wZX4Ao0LIDa5qutvKf83 XAdcpiS1FaiM9CGgzUveFR9nfZyYju1pkK6lnZDqBQYN577MqZo78Q2YX8fjJwXYWs6L Qbh1CklOsQkDi1dOowb3HiPfAHVmEvLrHcRa63wlahfHc+i9YDIn/oXpSwxgqTH0nsXl AWELKcRj2rQmjrIhexPL/K93MN/BQX8CKIA0+KjKJ3Ixu79HVCgLsKAPZNzK3+bkq6VP Qpzw== 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=cDNUbfJfTLd8fLf9cTLx2zCztUvwqvwRoWtiV3yjpUk=; b=BVRQSvwrANHuKU2lQrFp21V39zwz/pEZ/eZajAKCDw0DVH2AcbVM6a21JpWSevl+8G LfI9mF2CA9ArBJR0VHv3rwKzXEyyO9oE08k2MjN0cyElsnFGjsXPD+7SH8SevxHU0bO6 e/HeiGWauOvryGQ0IBnQEGwdRjLBhKNqoQ5Qa00WIcldIIDqwQ1xmSURCTryHITQQeII J5XeqjU4LyslDiid3NvOVJoQ3dWxoP6nljrXuem3OLdvPZ9px8UndfuoxZ/5su/5BAnT umQDmWTTX+EkCzXGZbJnUUkjz0n/Lhx0VHzZgOlRPLuEOh1BwqNPJyC9rxj3+4hypEDv GRxA== X-Gm-Message-State: AOAM53247KEL8dfGjnM1m3h+9zbwyP8wE6mAIiXzdy7BJCAxXTcLKul6 k3F4sPRXxS0CgaZTXHES3m9L5a23Qwvfhl4jei0= X-Google-Smtp-Source: ABdhPJzpfoE8Sm8PwtonltDtGjta773nO+1qml74ewq/GIayqDyGTRsRf2PfWFbPpSh0+B6kor8UZGsIXAplopC0bMQ= X-Received: by 2002:a2e:99ce:: with SMTP id l14mr11198865ljj.93.1615820976785; Mon, 15 Mar 2021 08:09:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 15 Mar 2021 16:09:20 +0100 Message-ID: To: Sara Golemon Cc: tyson andre , "internals@lists.php.net" Content-Type: multipart/alternative; boundary="000000000000578b7a05bd94a34e" Subject: Re: [PHP-DEV] RFC: Add `println(string $data = ''): int` From: nikita.ppv@gmail.com (Nikita Popov) --000000000000578b7a05bd94a34e Content-Type: text/plain; charset="UTF-8" On Mon, Mar 15, 2021 at 4:08 AM Sara Golemon wrote: > On Sat, Mar 13, 2021 at 1:54 PM tyson andre > wrote: > > > > > I've created a new RFC https://wiki.php.net/rfc/println > > This proposes adding a global function to PHP to > > print a string followed by a unix newline (`\n`). > > > > > This isn't solving any problem that anyone is actually having. > Yes, that includes you. You're not having this problem because it doesn't > exist. > > We already have twice as many ways to output a string as any language needs > and you want to add another because you'd rather type "LN" than "\N" ? > Hard, negative ten thousand no on this. > This is genuinely absurd. > My opinion matches Sara's, though maybe I wouldn't put it quite in those words ;) The difference between these two lines is one character: echo foo(), "\n"; println(foo()); I don't think this one character is worth adding another way to output strings, next to the two we already have (echo, print). Especially once you take into account the not entirely unambiguous semantics of printlln(). echo foo(), "\n" is entirely clear, and distinct from both echo foo(), PHP_EOL and echo foo(), "
\n". Regards, Nikita --000000000000578b7a05bd94a34e--