Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121564 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 1148 invoked from network); 3 Nov 2023 12:03:44 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Nov 2023 12:03:44 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0EE0318050B for ; Fri, 3 Nov 2023 05:03:44 -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=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, MISSING_HEADERS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 3 Nov 2023 05:03:43 -0700 (PDT) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-5a7af52ee31so23234957b3.2 for ; Fri, 03 Nov 2023 05:03:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699013022; x=1699617822; darn=lists.php.net; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=3h/7BKwddseSjbXjC/GTqa6Nky+G4yKu13ozKh0L6mM=; b=XHovMOUspXHvigJ73ZHQkLe9eZ5fX9BAKC9yNTQkg4lJXcgBKUQHndiIJYFEa6Q5Hd V/KbFepPoFCzVI3WG9N8OnCkasmVbDhfjXR1uTq1Dfeeyd4Yi16XGV3JU/0hlDZpfKg9 bNq2+/+OEDBqKaFrUPRxAtAi4ndYSqGqjRByG42KaoWK+snopjHWW+69igRhhA+nDztJ mND7jQ/hHf9C17Ai8wqlkMXjlcMe4Jh0G52sAuaC/lOBHejmjLQDKXwtE2KZD0nmSXkp 4lMjTx/GgYo9TWxwP7TwnBSmd5boZi5CNglLY8kXuhrzvc42uGv86uivfcTdxsrWb6g1 A8lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699013022; x=1699617822; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3h/7BKwddseSjbXjC/GTqa6Nky+G4yKu13ozKh0L6mM=; b=lxCTDTC9xpHAmUcbK7ARpU0+wi4KBOgJRtRjSdefq8JsKy3AJd6DFNXQ4VgSw78ym7 2ydxTJEpazutaT0fe7Br0/T9CU1drEvgJ6HTe6HMivnQSreb/E+rl8ZHVKLIVv5NYe0k e//yjMWBGJTggWmW6GjNQjVGBXY7vWGM0x/PTjGjwfKqWvZLDoBGQQMIPC1aAKAiHM+e 3xbcwboexRDKwqkLtkVdNn9LuwqC4CCyPmwzaQ1xr/gud2J27VPpV8NQIBSBzcS7jXU3 KJLoKxYslVbnI7NmGfjmAThSyBT+Gs10rLachQC6Rzbl66XWwM/C0cUPsSSOUN+bR8qC v9uA== X-Gm-Message-State: AOJu0Yyd29eWUtxCSVxlGQilYyx59ta1EZ2+mLicqGf7PVwuAbiikZ+j Q+UN6eiZT76bviSNzcNrKgIXtX/KuPwKM/TUxWcNcZ2mXaGecw== X-Google-Smtp-Source: AGHT+IEeZQAQKa1oXDUSRuZiNJutTmS+8ouD1exhZLUXVE11n7l9g00PChOVXh6BIJ6cDDzTn+9GUUoZ4C6eZHCTqgU= X-Received: by 2002:a05:690c:fd4:b0:5a7:ab45:539d with SMTP id dg20-20020a05690c0fd400b005a7ab45539dmr3063568ywb.2.1699013022537; Fri, 03 Nov 2023 05:03:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 3 Nov 2023 09:03:31 -0300 Message-ID: Cc: php internals Content-Type: multipart/alternative; boundary="000000000000ad5d3506093e4bf2" Subject: Re: [PHP-DEV] Short Function Syntax From: marcolindev@gmail.com (Marcos Marcolin) --000000000000ad5d3506093e4bf2 Content-Type: text/plain; charset="UTF-8" Hi, I don't think this inclusion is a problem, but I also don't see any real benefits. Some parts of the syntax should be verbose to make it easier to read and understand, especially for those who are just arriving. Soon, people will want to be writing `pub` instead of `public`, or `priv` instead of `private` in method or property declarations. Just an addition to your example and my opinion. I prefer to define all properties in the class, instead of using property promotion in the constructor, maybe I have a serious problem. --- *Marcos Marcolin* Software Engineer | PHP www.marcosmarcolin.com.br --000000000000ad5d3506093e4bf2--