XXIIVV ∴ Den

Den Talk Den is a small scripting language created for XXIIVV, and the successor to Mute . It is meant for optimal readability and simplicity. Similarly to Mute, there is only one syntax, for conditions, objects, functions, etc.. For example, a variable is just a function that returns a value. A return, in Den, uses the colon character. You can think of it like, index = value, like the setter [index:value]. index : value An if/else system is simply a function with cases. The following example will return 20, if a is not equal to 10. cond a b ? a = 10 : 5 : 20 Every function must exit, or else it runs itself into a loop. The following example shows an incrementation loop that exits once loop has equaled 10. loop ? loop = 10 : loop + 1 The following object is initialized with variables a and b, followed with the method, divided with a pipe. object a b meth...

Linked on 2014-11-28 19:17:54 | Similar Links