官术网_书友最值得收藏!

Working with Variables and Built-in Data Types

Perl 6 is a language with gradual typing. This means that you are not required to indicate the type of the variables you create: you may freely use the same variable to store data of different types. However, you may also create a typed variable and, in that case, the compiler will check the usage of that variable and make sure that the variable is only used in the operations allowed for that type.

In this chapter, we will first go through the built-in types of Perl 6 and, later, learn how to work with variables:

  • Built-in data types
  • Type hierarchy
  • Variables
  • Scalars, arrays and hashes
  • Object-oriented properties of data types
  • Simple and composite data types
主站蜘蛛池模板: 利辛县| 瑞金市| 曲周县| 余干县| 独山县| 新竹县| 台东市| 吴桥县| 收藏| 马边| 沐川县| 射洪县| 蓬安县| 克什克腾旗| 许昌市| 通州市| 米泉市| 林周县| 博湖县| 巩义市| 同江市| 洛川县| 龙江县| 德令哈市| 鹤峰县| 宣武区| 英德市| 北安市| 招远市| 秦安县| 滦平县| 武义县| 西平县| 巴彦淖尔市| 平邑县| 周口市| 宁津县| 涡阳县| 五大连池市| 涟源市| 临沭县|