Re: Short Function Syntax

From: Date: Fri, 03 Nov 2023 12:03:31 +0000
Subject: Re: Short Function Syntax
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-121564@lists.php.net to get a copy of this message
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

« previous php.internals (#121564) next »