Also known as block of code, block, region, region of code, code region
computer programming term; section of code which is grouped together
Article · 中文
在计算机编程中,块(block)或代码块是将源代码组织在一起的词法结构。块构成自一个或多个声明和语句。编程语言允许创建块,包括嵌入其他块之内的块,就叫做块结构编程语言。块和子程序是结构化编程的基础,结构化所强调的控制结构是用块来形成的。 在编程中块的功能是确使成组的语句被当作如同就是一个语句,限定在一个块中声明的对象如变量、过程和函数的词法作用域,使得它们不冲突于在其他地方用到的同名者。在块结构编程语言中,在块外部的对象名字在块内部是可见的,除非它们被声明了相同名字的对象所遮掩。
Abstract from DBpedia / Wikipedia · CC BY-SA
Connections
structured programming
Entity
control flow
Entity
scope
Entity
list of programming languages by type
Entity
Q15777
Entity
programming language
Entity
Python
Entity
computer programming
Entity
digital object identifier
Entity
International Standard Serial Number
Entity
Q42979
Entity
object-oriented programming
Entity
Fortran
Entity
source code
Entity
Edsger W. Dijkstra
Entity
Lisp
Entity
Q34010
Entity
functional programming
Entity
parallel computing
Entity
scripting language
Entity