a-poor

Joined 5 years ago

Karma
56
Submissions
13
Member since
Jul 22
Fullstack developer living in Los Angeles, CA.

https://austinpoor.com

View on Hacker News

Recent submissions

Comment · 6 months ago
Synthetic training data
Comment · 8 months ago
What is broken about the go error type? If anything the fact that it is a simple interface makes the `try` syntax sugar more doable – right?

Let's say you have this:

``` part, err := doSomething() if err != nil { return nil, err }

data, err := somethingElse(part) if err != nil { return nil, err }

return data, nil ```

Then as long as your function followed the contract 0+ returns and then 1 `error` return, that could absolutely be turned into just the 0+ returns and auto-return error.

The fact that the `Error` interface is easy to match and extend, plus the common pattern of adding an error as the last return makes this possible.

What am I missing here?

Comment · 1 year ago
Comment · 3 years ago
I would love to -- I'm planning to start with something on the smaller side as a PoC.
Comment · 3 years ago
Delve into the world of Rust development with this blog post on creating a custom URL shortener, complete with tech stack analysis, middleware integration, and load testing.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton