Functions

Declare a function easily with fn. Open the block with :, and close using end, or ... Also note that the return statement always expects an expressionâ€“use the leave statement to return early from a function without an expression.

Similar to Javascript, anonymous self-calling functions are in KobraScript. These are typically used to create a private scope. In KobraScript, a closure literal may be constructed with close, followed by the inteded arguments as parameters enclosed in curly braces. One never has to worry about whether ones functions are being invoked on the fly. Closed to the world, KobraScript may evaluate.

Blocks

Blocks in KobraScript are beautiful. Start a multiline block with : and terminate it with the clear end, or the elegantly-flowing ..
Fearlessly create a single-statement block by pointing -> to it. Nice.