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

  • 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.

主站蜘蛛池模板: 确山县| 万源市| 嘉定区| 托克逊县| 平武县| 龙胜| 青阳县| 张家界市| 华阴市| 桐城市| 绥宁县| 威远县| 包头市| 织金县| 南投市| 河间市| 和平县| 嘉义市| 府谷县| 孟津县| 江陵县| 台湾省| 东港市| 全南县| 阿城市| 万盛区| 岑巩县| 平果县| 许昌县| 敦化市| 牙克石市| 保康县| 汾阳市| 法库县| 澄城县| 吉安县| 静海县| 格尔木市| 新竹县| 盱眙县| 平罗县|