Language - Code Block (Grouping of Statement)

Card Puncher Data Processing


An application is generally constructed from code blocks.

A block is a piece of program text that group statement.

It' is generally executed as a unit (excepted for SQL Block where block manipulation may occurs such as filter pusing)

The following are blocks:

  • anonymous block. An anonymous block is a block of code without name that then cannot be called (ie reused). The statement are between block character such as: ( and ) or { and }
  • Reusable block. They are block of code with a name that can be reused (ie function or class)

Statements are grouped for:

See also

Discover More
Model Funny
(Function | Operator | Map | Mapping | Transformation | Method | Rule | Task | Subroutine)

Section computable function. A function is a callable unit that may be called: a procedure, a subrontine a routine, a method (belong to an objectmacrocomputablalgorithreusable blocargumentdevelopment...
Card Puncher Data Processing
Ansible - Block

in Ansible
Card Puncher Data Processing
Assembly - Block

in Assembly A label denotes the purpose of an assembly block.
Card Puncher Data Processing
Code - Exception (Try, Catch, Finally statement)

Exceptions are a means of breaking out of the normal flow of control of a code block in order to: handle errors or other exceptional conditions. You may want to track and see the exceptions that...
Encapsulation The Bad Part
Code Design - Encapsulation

Encapsulation is the process of create block of code (generally function) hiding the implementation details in order to create an abstraction. ...
Data System Architecture
Concurrency - Guarded block (Thread Communication Idiom)

The most common coordination idiom between thread is the guarded block. Such a block begins by polling a condition that must be true before the block can proceed. The loop is wasteful, since it...
Css - Declaration Block (in style sheet)

A declaration block starts with a left curly brace ({) and ends with the matching right curly brace (}). In between, there must be a list of zero or more semicolon-separated (;) declarations. A declaration...
Gradle - Block

block in Gradle. A block is found in a script and is a method call which takes a closure as a parameter. The closure is treated as a configuration closure which configures some delegate object as it executes....
Card Puncher Data Processing
Grammar - Error (Handling)

An error is an exceptional conditions that breaks the normal flow For Shell language that are based on process command, the error management is done via the Error code / exit status For an block,...
Javascript - Code block {}

in Javascript {} will group statement

Share this page:
Follow us:
Task Runner