Compile and run on your terms.
Mirrow gives you the tools and runtime to build fast, reliable systems with full control.
import "IO"
enum UserResult {
Success { user },
NotFound { id }
}
func getUser(id) {
let! userData = IO.readFile($"users/{id}.json")
let! parsed = parseJSON(userData)
validateUser(parsed)
}
func processUsers(ids) {
let! users = ids
|> map(getUser)
|> collectResults
users |> filter(fn(u) -> u.active)
}
Start writing your apps the right way.