Top "Language-construct" questions

?: operator (the 'Elvis operator') in PHP

I saw this today in some PHP code: $items = $items ?: $this->_handle->result('next', $this->_result, $this); …

php conditional-operator language-construct
What is ?: in PHP 5.3?

Possible Duplicate: What are the PHP operators “?” and “:” called and what do they do? From http://twitto.org/ <?PHP …

php php-5.3 ternary-operator conditional-operator language-construct
What does 'String...' mean?

In the code: public interface ProductInterface { public List<ProductVO> getProductPricing(ProductVO product, ProductVO prodPackage, String... pricingTypes) throws ServiceException; } …

java language-construct
Difference between period and comma when concatenating with echo versus return?

I just found that this will work: echo $value , " continue"; but this does not: return $value , " continue"; While "." works in …

php function compare concatenation language-construct
When and Why use Loop Do Construct in Ruby

I recently came up across a problem/solution that used Loop Do. I seldom have seen this so far in …

ruby loops language-construct
What is the difference between a language construct and a "built-in" function in PHP?

I know that include, isset, require, print, echo, and some others are not functions but language constructs. Some of these …

php function built-in language-construct
Is there a way to implement custom language features in C#?

I've been puzzling about this for a while and I've looked around a bit, unable to find any discussion about …

c# syntactic-sugar language-construct
What are the basic language constructs in java?

I've been asked to "Identify all language constructs in Java. Your list should start with classes: The body of class …

java language-construct
Specifying default parameter when calling C++ function

Suppose I have code like this: void f(int a = 0, int b = 0, int c = 0) { //...Some Code... } As you can evidently …

c++ c++11 default-value language-construct
How can I emulate destructuring in C++?

In JavaScript ES6, there is a language feature known as destructuring. It exists across many other languages as well. In …

javascript c++ destructuring c++17 language-construct