- Perl 6 Deep Dive
- Andrew Shitov
- 183字
- 2021-07-03 00:05:55
Operator classification
First, let's remind ourselves of some of the basic terminology that we need when talking about operators. Consider a simple example:
my $a = 10;
my $b = 20;
my $c = 0;
$c = $a + $b;
say $c; # 30
Let's concentrate on the following line of code:
$c = $a + $b;
Here, we tell the compiler to perform two actions—first, calculate the sum of the $a and $b variables, and second, assign the result to the third variable, that is, $c. There are two operators in this example—+ and =. Operators are presented by their one-character names. In this case, the names are chosen to copy the corresponding operators in mathematics. Later, we will see examples of other operators, which are not just a character. They can be, for example, a sequence of two or three non-alphabetical symbols, such as >= or <= operators. Or, they can be a string identifier, for example—cmp or eq.
- Facebook Application Development with Graph API Cookbook
- Learning Cython Programming
- Machine Learning with R Cookbook(Second Edition)
- C語言程序設計教程(第2版)
- Scratch 3.0少兒編程與邏輯思維訓練
- Apex Design Patterns
- Integrating Facebook iOS SDK with Your Application
- 跟戴銘學iOS編程:理順核心知識點
- C# 7.1 and .NET Core 2.0:Modern Cross-Platform Development(Third Edition)
- Python應用與實戰
- Sitecore Cookbook for Developers
- Mastering Object:Oriented Python(Second Edition)
- 川哥教你Spring Boot 2實戰
- 劍指大數據:企業級電商數據倉庫項目實戰(精華版)
- Java程序設計基礎教程