The Go Programming Language

The Go Programming Language

 The Go Programming Language|200

  • 作者: Brian W. Kernighan
  • 简介:
  • 出版时间:
  • ISBN:
  • 分类:
  • 出版社: Pearson Education Limited (US titles)
  • 字数: 688537
  • 在线阅读: 微信读书
  • 划线数量: 4
  • 想法数量: 1

笔记

Preface

📌 garbage collection

  • ⏱ 2024-01-11 15:42:07 ^1-2543-2561

2.2 Declarations

📌 A declaration names a program entity and specifies some or all of its properties. There are four major kinds of declarations: var, const, type, and func.

  • ⏱ 2024-01-11 02:15:48 ^18-777-1077

2.7 Scope

📌 The scope of a declaration is the part of the source code where a use of the declared name refers to that declaration.

  • ⏱ 2024-01-11 02:16:56 ^23-917-1062

📌 Don’t confuse scope with lifetime. The scope of a declaration is a region of the program text; it is a compile-time property. The lifetime of a variable is the range of time during execution when the variable can be referred to by other parts of the program; it is a run-time property.

  • ⏱ 2024-01-11 15:43:29 ^23-1153-1440


📌 lexical
💭 lexical /ˈleksɪkəl/
a. 词汇的(与 grammatical 相对而言)
a. 词典的;具词典性质的;词典编纂的

  • ⏱ 2024-01-11 02:18:18 ^19836794-7O7UlUW9x