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

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
主站蜘蛛池模板: 乌兰浩特市| 乌什县| 石林| 曲阳县| 武川县| 莒南县| 湘潭市| 剑河县| 玛多县| 蚌埠市| 苏尼特左旗| 高雄县| 涿州市| 郎溪县| 内江市| 莱芜市| 和硕县| 姚安县| 马关县| 汝南县| 黎川县| 蒙城县| 家居| 洛隆县| 永州市| 遂昌县| 津南区| 德阳市| 开封市| 娄烦县| 巧家县| 东乌| 广东省| 四平市| 兴仁县| 金山区| 仲巴县| 新沂市| 康定县| 正定县| 汤原县|