Skip to content

Conversation

@problame
Copy link
Contributor

@problame problame commented May 20, 2025

@problame problame force-pushed the problame/hackathon-may2025 branch from c66b7e6 to e7c9fb0 Compare May 20, 2025 10:57
@problame problame changed the title HACKATHON integrate neon-pagecache-kmod HACKATHON May 2025: integrate neon-pagecache-kmod May 23, 2025
olegbbtr added a commit that referenced this pull request Jun 4, 2025
After a recent announcement [1] by Go team, saying they won't proceed
with adding error handling syntax to Go, it is evident we have to
implement a solution downstream.

We already build Linux kernel with custom patches (see #1386, #1392), it
is logical that as a next step we should have our own fork of Go, called
Neon Go.

The first feature is a syntax to handle errors. It supports the
following syntax:

  ... := ... handle err {
    ...
  }

Which is equivalent to:

  ..., err := ...
  if err != nil {
    ...
  }

Advantages:
1. Easy to read.
2. Easy to write (no need to look for the ! key).

Timeline to implement:
5 June - merge to main
6 June - deploy to staging
7 June - deploy to production

[1]: https://go.dev/blog/error-syntax

NOTE: this is, of course, a joke. I don't have any strong opinion about
error handling in Go.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants