Block of code
Contains zero or more statements
{
int x;
{ ... } // <- nested block
long y = { "alice"; 1 + 2; }; // here last value is returned and assigned to `y`
}
- Value parameters:
- statements
Statements included in the block
- Companion:
- object
trait Serializable
trait Product
trait Equals
class Expr
trait HasStaticTypeSafety
trait HasPromoteToType
trait HasEvalType
class Stat
class AST
class Object
trait Matchable
class Any