magenta

magenta is a mid-level type-safe language. it's immutable where convenient, does not have null, and aims to keep code as short as possible whilst maintaining not being absolutely ridiculous. the syntax itself borrows elements from the bourne shell, f#, typescript, and go.

example

namespace main
include math

var executed string // initializes to empty string

int sum(x int, y int) {
	"sum(" + math.itoa(x) + ", " math.itoa(y) + ")" -> executed

	// last expression of return type is automatically returned
	// if an explicit return is not specified
	x + y
}

sum(3, 5) | debug(executed, "=", $)
// → "sum(3, 5) = 8"

roadmap

sitemap