What Is the Name for the "<<<" Operator

What is the name of the :: operator?

:: is the scope resolution operator (you may sometimes find references to Paamayim Nekudotayim, hebrew for "double colon"). It is used to call static functions of a class, as in

class MyClass {
public static function hi() {
echo "hello, world";
}
}
MyClass::hi();

For more details on classes and objects, refer to the official documentation.

What is the name of the ... operator?

It's the same operator with different names based on the usage.

Rest Properties

Rest properties collect the remaining own enumerable property keys that are not already picked off by the destructuring pattern. Those keys and their values are copied onto a new object.

let { x, y, ...z } = { x: 1, y: 2, a: 3, b: 4 };
x; // 1
y; // 2
z; // { a: 3, b: 4 }

Spread Properties

Spread properties in object initializers copies own enumerable properties from a provided object onto the newly created object.

let n = { x, y, ...z };
n; // { x: 1, y: 2, a: 3, b: 4 }

more ...

What is the name of the :: operator in Java 8

It should probably be called a "colon colon separator":

  • Brian Goetz* calls it "colon colon" and since he was the specification lead for the lambda JSR I suppose we can consider him as an authoritative source.
  • The specification #3.11 classifies :: as a separator.

*source: the road to lambda @ Javaone 2013 around 04:00.

What's the name of the operator?

"Binary Concatenation" Operator.

Sources:

  1. Elixir Documentation.
  2. Elixir Forum.

What is the name for the operator?

Heredoc:

A third way to delimit strings is the heredoc syntax: <<<. After this operator, an identifier is provided, then a newline. The string itself follows, and then the same identifier again to close the quotation.

The closing identifier must begin in the first column of the line. Also, the identifier must follow the same naming rules as any other label in PHP: it must contain only alphanumeric characters and underscores, and must start with a non-digit character or underscore.

Warning It is very important to note that the line with the closing identifier must contain no other characters, except a semicolon (;). That means especially that the identifier may not be indented, and there may not be any spaces or tabs before or after the semicolon. It's also important to realize that the first character before the closing identifier must be a newline as defined by the local operating system. This is \n on UNIX systems, including Mac OS X. The closing delimiter must also be followed by a newline.


If this rule is broken and the closing identifier is not "clean", it will not be considered a closing identifier, and PHP will continue looking for one. If a proper closing identifier is not found before the end of the current file, a parse error will result at the last line.


Heredocs can not be used for initializing class properties. Since PHP 5.3, this limitation is valid only for heredocs containing variables...

What is the name of === operator in JavaScript

I was wondering if there is widely recognized name for === operator.

The names I've heard most commonly are strict equality operator and strict equals operator. And it turns out that arguably, it has both those names:

The old spec called it the strict equals operator:

11.9.4 The Strict Equals Operator ( === )

The production EqualityExpression : EqualityExpression === RelationalExpression is evaluated as follows: ...

Oddly, it's never actually named in the new spec, but the closest is here:

7.2.13 Strict Equality Comparison

The comparison x === y, where x and y are values, produces true or false. Such a comparison is performed as follows:...

What is the name of this operator =?

It's referred to as the lambda operator in the MSDN docs.

All lambda expressions use the lambda
operator =>, which is read as "goes
to". The left side of the lambda
operator specifies the input
parameters (if any) and the right side
holds the expression or statement
block. The lambda expression x => x *
x is read "x goes to x times x." This
expression can be assigned to a
delegate type as follows:



Related Topics



Leave a reply



Submit