1 comment

[ 5.3 ms ] story [ 11.9 ms ] thread
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.