3 ms·
I just love their alternative to go's error handling: ['/post/:id'] fn (b Blog) show_post(id int) vweb.Result { post := b.posts_repo.retrieve(id)
by rattray 6y ago
I just love their alternative to go's error handling:
['/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.