Re: [PHP-DEV] Optional constructor body

2024-07-18 Thread Oliver Nybroe
gt; --Larry Garfield > Sorry about the top posting and thank you for your feedback. I'll take that into account. I have used Kotlin myself for many years and love how concise the syntax is there. I'll take a look at other languages and see if I can come up with a more concise syntax that still feels like PHP. Else I might try out creating this small RFC first as a good introduction to the flow, even though it is unlikely to pass. Best regards Oliver Nybroe (he/him)

Re: [PHP-DEV] Optional constructor body

2024-07-18 Thread Oliver Nybroe
ted or not (`public function __construct(public int $foo);` vs `public function __construct(public int $foo)`). Thank you, these are very valuable points to address in the RFC. I can definitely feel that there will be some mixed opinions about semicolon vs no semi colon. Best regards Oliver Nybroe (he/

[PHP-DEV] Optional constructor body

2024-07-18 Thread Oliver Nybroe
of property access hooks in 8.4 which is allowed to be defined in the constructor also. This change would only be a cosmetic change and simplify the userland code by removing two redundant characters. This would be my first RFC and I am willing to try and implement it myself. Best regards Oliver Nybroe

[PHP-DEV] Requesting RFC karma

2021-12-15 Thread Oliver Nybroe
Hi, I would like to have RFC karma, so I can submit an RFC for a new syntax for checking not instance of. Best regards Oliver Nybroe (he/him)

Re: [PHP-DEV] [RFC] !instanceof operator - reaction measuremen

2021-12-13 Thread Oliver Nybroe
ough if this one would be accepted. > Why not "not" instead? The "!" in front of "i" in "!implements" Might be my limited knowledge on the subject, but by using `not`, we are making `not` a reserved keyword, which I think should be done really carefully.

[PHP-DEV] [RFC] !instanceof operator - reaction measuremen

2021-12-13 Thread Oliver Nybroe
and AST and something I should be able to figure out. What do people think about this? Would love to clarify if needed. Best regards Oliver Nybroe (he/him)