V: A go-like lang that compiles itself in 1s
vlang.io
vlang.io
['/post/:id']
fn (b Blog) show_post(id int) vweb.Result {
post := b.posts_repo.retrieve(id) or {
return vweb.not_found()
}
return vweb.view(post)
}
They also have generics, sum types, etc.