In Haxe, nearly everything is an expression. (Things that aren’t: import statement, class declaration etc, which are at module level). And every expression can be evaluated to a value.
A block is an expression that is evaluated to the last expression inside the block:
var v = {
//some code
123 …