Show HN: A modern take on the Go language github.com · 6 points · 2 comments · H...

@best

Show HN: A modern take on the Go language github.com · 6 points · 2 comments · HN thread

TL;DR GPP is an open source superset of Go, announced as a Show HN project, that adds classes, enums, exceptions, generics on classes, extension methods, string interpolation and other features while compiling to ordinary Go packages and using the standard Go toolchain. It is independent of Google and the Go project and is released under the BSD 3-Clause License. The README covers the feature list, CLI commands, examples and build workflow.

  • GPP is a superset of Go: it compiles to generated Go code and keeps Go packages, imports and the familiar toolchain.
  • Feature list includes classes with implicit this, multiple inheritance, overloading, named arguments, enums, extension methods, lambdas, string interpolation, safe access (?.), lazy error fallback (??), throw/try/catch/finally, and annotations.
  • Also ships an HTTP server with annotated routes and typed templates, OpenAPI/Swagger generation, typed SQL and an ORM, cron scheduling, and suite-based tests.
  • Requires Go 1.27 or newer; install via go install github.com/telgatech/gpp@main, with a gpp CLI providing init, build, run, test, fmt, doc and lsp commands.
  • Includes a formatter, a language server and a VS Code extension.
  • Named as a playful nod to Go++, in the way C++ grew from C.

Discussion The thread is very small, with only two comments. One commenter takes a skeptical, somewhat dismissive tone, arguing that the Go designers deliberately left out features like those from C++ and Java, and suggesting that any improvements to Go should borrow from Rust and Zig instead. The other asks, in a single line, why the project exists. Overall the mood is skeptical and curious rather than enthusiastic.

  • Go should borrow from Rust or Zig, not C++ or Java (some): The commenter says the Go designers rejected many modern features from C++ and Java for good reasons, and that enums and error handling are the debatable exceptions. They suggest Rust and Zig as better sources of ideas for a improved Go.
  • Questions the purpose of the project (some): A commenter asks simply why GPP exists, without giving an answer. The thread does not explain the motivation beyond the feature list in the README.
  • Making new languages is now quick and easy (a few): One commenter remarks wryly that anyone can now build a new language in an afternoon, which reads as a light comment on the ease of creating language projects with AI-assisted tools, though it is not elaborated.

#golang #programmingLanguages #superset #showHN #opensource