- Issue created by @Chris64
- π¬π§United Kingdom jonathan1055
Hi Chris64,
Just for our info, when you created this issue, were you presented with this standard template? I thought that coding_standards issues had a new custom template which is designed to assist the process of changing standards. But you seem to have managed to use the old ordinary template. - π«π·France Chris64 France
@jonathan1055, may be the problem is project and component are not well chosen... Changed for Drupal core and base system.
- π¦πΉAustria drunken monkey Vienna, Austria
What is this issue actually aiming to achieve? If itβs a coding standard you want for the
$A = $A ?: $B
case then βCoding Standardsβ is of course the correct project. Otherwise, what is the goal of this issue? Could you please clarify in the issue description?If you actually want to create a coding standard for
$A = $A ?: $B
then I vote against it. In my opinion, there is no clearly preferrable version here and we definitely cannot and shouldnβt try to provide a standard for every possible piece of code. - Status changed to Closed: duplicate
10 months ago 12:23pm 25 February 2024 - π¦πΊAustralia dpi Perth, Australia
Hard to determine what this issue is asking for.
We have π Require short ternary (Elvis operator) syntax Postponed for making use of more ?:
About the issue title, "About an ?: assignment operator.", ?: is not for assignment.
?: is specifically for testing FALSE. Whereas ?? or ??= is for non-existent or NULL.
Closing based on π Require short ternary (Elvis operator) syntax Postponed
- Status changed to Active
10 months ago 10:47pm 25 February 2024 - π«π·France Chris64 France
Sorry, my purpose is not clear enough. Even is obscure. May be it should be ignored since it is about about some thing that does not exist, but I don't think it should be closed as duplicate. It is not Elvis operator. Yes, ?: is not an assignment operator, but I would like to speak about an assignment operator for ?:.
Here a clearer exposition,
------------------------------------------------- symbol | ternary operator | assignment operator | ------------------------------------------------- ?? | ?? | ??= | ------------------------------------------------- ?! | ?! | ?!= (1) | ------------------------------------------------- (1) : does not exist/missing in php 8.2
The purpose of this issue is about case (1).
- Status changed to Postponed: needs info
10 months ago 2:08am 7 March 2024 - π³πΏNew Zealand quietone
Like #7 I am not sure what is to be achieved. Can you complete the proposed change section? Or provide before and after examples?