Zowm
Jump to navigation
Jump to search
Zowm is an esolang where every value is either a function or an integer.
let x = 72; let y = 105; let combined = x * 256 + y; print(combined); // prints 'Hi'
let a = [256; 72, 105]; // 18537 print(a); // prints 'Hi' print(a[256$2; 0]); // H (indexes from most significant item) print(a[256; 1]); // H (indexes from least significant item)
Every function must specify the type of its parameters:
fun multiply(a: n, b: n) { return a * b; }
let multiply = fun(a: n, b: n) { return a * b; }
Zowm has static typechecking:
print(log(2, rand(-15, 3))); // Domain error
let in = input(); if in == 0 { exit(); } print(irepr(rand(0, in)));