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

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.

主站蜘蛛池模板: 望都县| 承德县| 淮阳县| 永登县| 汉阴县| 长沙县| 垦利县| 定南县| 久治县| 汉中市| 施甸县| 绥江县| 洱源县| 邻水| 林西县| 那曲县| 平潭县| 高淳县| 牙克石市| 南江县| 东辽县| 元阳县| 五常市| 新巴尔虎右旗| 田林县| 项城市| 且末县| 蚌埠市| 汪清县| 湖南省| 钦州市| 彭山县| 紫金县| 大同市| 杭锦后旗| 卢湾区| 滨州市| 东光县| 渭源县| 行唐县| 大荔县|