Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112126 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 37824 invoked from network); 26 Oct 2020 17:51:48 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Oct 2020 17:51:48 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 65268180502 for ; Mon, 26 Oct 2020 10:10:15 -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-il1-f176.google.com (mail-il1-f176.google.com [209.85.166.176]) (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, 26 Oct 2020 10:10:14 -0700 (PDT) Received: by mail-il1-f176.google.com with SMTP id v18so3637248ilg.1 for ; Mon, 26 Oct 2020 10:10:14 -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=Nutaud2B2qivbMSIocMWN40FLb4xAPyznr1iKa/NIHo=; b=BbBqaIb82UID4V26aBSkJ5sAVCkfUe7NGpgSnLJXP+RWvCYkUuAQwd8wmco8q3TN1W ijGpFXA8WVkxMSSlSUJAWj/c3a1WmaPXNwJjngc4SyqWYMMoMZnDiZPzeLAT6YG0rtvm 9HG/Q9IKjsW2JxTcTyul5CCRhbRi7qFViGqvSn1g502GRZ5GpHc643E6qcE1Ote0J/Jh oo1nk84LAtQ29JZvCmSs7DqounmAvS4b6Sovor11dmLAIHzsCt6haQHyOrfZwZNq1WPf z9tMU9RdwddrONJSxmuaOzCLE7YljZvqIJFiq7QIe3ojoEY3u0rjA8StY+wZayhtAsAI 3qCg== 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=Nutaud2B2qivbMSIocMWN40FLb4xAPyznr1iKa/NIHo=; b=Lz9GVOh241Xtd438xOY1IwJY24P3NMhtCNO+4HlbyX0oxIkDnVmi/8tztGYnqIRi3y C/Lr+U0SqWaubsHb7ZEJBwHB8tVkb7PXLko0EEsExGYrPGUTwD+71QDw2kPcxz5Fizyl r0dVlDhFSiIEEXu0r9BZ++QHUMTAmSTxnC2FXpjyrPkaxXcu7Qmz5p06rI5atmWqbh5u +LlNtHM3zPLkQLUhY8kvsyRwaWSt2uw7czc9YELxsvZalb9lh8leW966XNBxk6ARINyZ Tlx7hJDRWPzmgxICtkImnBQ5g5T8xZt60wk7ieAlK1HpGgfyw7yuJI41VImLRnFzICp6 J6JQ== X-Gm-Message-State: AOAM532xXTYC0iMVfPXzxEy2ckl1gtBfiBt5vtM6lQ+9CeyX+rMV/GGp ZoAQaTobhEO3hiYmHTUmstoOOnRjXLaq1Fsqdek= X-Google-Smtp-Source: ABdhPJyEzgsfJmRztAIIYEHHFCv55FuKPbtNd8hk7UqMp4ew8U33ohrwYhFbyyPuRBOOIwiLl++WImN2dwpsG0ulVRU= X-Received: by 2002:a92:d806:: with SMTP id y6mr4477858ilm.264.1603732213046; Mon, 26 Oct 2020 10:10:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 26 Oct 2020 18:10:02 +0100 Message-ID: To: David Rodrigues Cc: Larry Garfield , php internals Content-Type: multipart/alternative; boundary="000000000000dfa41f05b29600ee" Subject: Re: [PHP-DEV] [RFC] Short-function syntax From: michal.brzuchalski@gmail.com (=?UTF-8?Q?Micha=C5=82_Marcin_Brzuchalski?=) --000000000000dfa41f05b29600ee Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi David, pon., 26 pa=C5=BA 2020 o 15:29 David Rodrigues napisa=C5=82(a): > > The use of > instead of =3D> could if possible indicate the method bein= g > void > > and reduce even more: > > I think that for void, it could just identify it and not return nothing > automatically. > > function a(): int =3D> b(); // equivalents to function a(): int { return > b(); } > function x(): void =3D> y(); // equivalents to function x(): void { y(); = } > Sure, but I've used > without adding return type ':void' intentionally what could possibly indicate the void if talking about reducing the return type at all for void methods. Cheers, Micha=C5=82 Marcin Brzuchalski --000000000000dfa41f05b29600ee--