Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What I would like to see:

- Enun Types

- A special operator to cut down on `if err != nil { return err }` and just return at that point.

- Named arguments, and optional params with defaults

- Default values on structs

- ...macros? We already have `go generate ./...`

( edit: Removed unformatted source code )



Sum types would satisfy the first two on that list, as well as making an ergonomic optional type trivial to define.




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

Search: