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

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
主站蜘蛛池模板: 达州市| 南和县| 东台市| 嘉禾县| 寿宁县| 彝良县| 什邡市| 襄汾县| 萨嘎县| 类乌齐县| 枝江市| 准格尔旗| 汤阴县| 万盛区| 团风县| 萨迦县| 乐山市| 白玉县| 防城港市| 平远县| 滦南县| 安泽县| 海原县| 桑日县| 麻城市| 大荔县| 公安县| 云阳县| 泰州市| 千阳县| 台山市| 安陆市| 宜君县| 鸡泽县| 边坝县| 黄陵县| 高尔夫| 开封市| 东阳市| 随州市| 达拉特旗|