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

@show

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

TL;DR GPP is an open-source superset of Go that adds classes, enums, generics on classes, exceptions, ORM, HTTP server and other features while compiling to ordinary Go packages and using the standard Go toolchain. The repository README describes its features, CLI (gpp build/run/test/fmt/doc/lsp) and requirement of Go 1.27 or newer. The Show HN post received 2 points and no comments.

  • GPP is a superset of Go that compiles to generated Go code and keeps Go packages and the familiar toolchain.
  • Adds classes with implicit this, multiple inheritance, overloading, named arguments, enums, extension methods, string interpolation, and lambdas.
  • Includes error-handling additions: ?. safe access, ?? lazy fallback, and throw/try/catch/finally syntax alongside Go-style error values.
  • Bundles higher-level libraries: HTTP servers with annotated routes, typed SQL, ORM models, typed templates, OpenAPI/Swagger, cron, and a test framework.
  • Ships a project CLI with build, run, test, formatter, documentation viewer and language server; a VS Code extension is also provided.
  • Requires Go 1.27 or newer; it is an independent BSD 3-Clause project, not affiliated with Google or the Go project.

Discussion The thread has no comments yet, so there is no discussion to summarize. The submission had only 2 points at the time of this digest.

#golang #programmingLanguages #compilers #showHN #opensource