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

  • Mastering Dart
  • Sergey Akopkokhyants
  • 134字
  • 2021-08-05 17:19:18

Summary

This chapter covered some of the most useful advanced features of the Dart language. The Dart language was designed with the modules in mind. Modularity in Dart is realized through packages, libraries, and classes. The code compiled in JavaScript loses all the library information.

Functions are first-class citizens because they support all the operations generally available to other types. A function that can be referenced with an access to the variables in its lexical scope is called a closure.

Programs are designed to use objects as instances of classes that interact with each other to organize functionality. The Dart language is dynamically typed, so we can write programs with or without the type annotations in our code.

In the next chapter, we will talk about generics, errors and exceptions, and annotations and reflection.

主站蜘蛛池模板: 西平县| 嘉荫县| 海林市| 武隆县| 娱乐| 固镇县| 揭东县| 雷州市| 开封市| 政和县| 慈利县| 平乐县| 荥阳市| 开化县| 杭锦后旗| 勐海县| 玉环县| 宣武区| 汉沽区| 房产| 申扎县| 镇坪县| 广水市| 平和县| 安远县| 淮南市| 承德县| 旬阳县| 上饶县| 玛多县| 安吉县| 阿勒泰市| 万宁市| 麻江县| 唐海县| 宝丰县| 兴义市| 漠河县| 来宾市| 怀柔区| 绥中县|