Update page 'Future AerScript Versions'
@@ -30,11 +30,3 @@ A right associative \** operator can be added to support exponentiation, along w
|
||||
|
||||
printf("2 ** 3 = %d\n", 2 ** 3); // 8
|
||||
printf("2 ** 3 ** 2 = %d\n", 2 ** 3 ** 2); // 512
|
||||
|
||||
### Null Coalescing Operator
|
||||
The ??-operator could return the left side as long as it's not null, in that case the right side would be returned
|
||||
|
||||
int $var1 = getValue();
|
||||
int $var2 = 7;
|
||||
|
||||
int $result = $var1 ?? $var2; // $result will be 7 if $var1 is NULL
|
||||
|
||||
Reference in New Issue
Block a user