Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
V: A go-like lang that compiles itself in 1s (vlang.io)
2 points by rattray on Jan 1, 2021 | hide | past | favorite | 1 comment


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.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: