Context Blocks - brombres/Rogue GitHub Wiki

Syntax

x = obj.[ a, b, c ]

Equivalent to:

obj.a
obj.b
obj.c
x = obj

Description

The Context Block Operator .[...] allows a series of access calls and commands to be made on a given object context. The context block evaluates to the original context.

In most cases this is a better alternative to traditional call chaining because it does not require method return values to be co-opted into returning this object for the sake of simplified call syntax.