Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: I've asked Claude to improve codebase quality 200 times (gricha.dev)
11 points by Gricha 4 hours ago | hide | past | favorite | 1 comment




> I like Rust's result-handling system, I don't think it works very well if you try to bring it to the entire ecosystem that already is standardized on error throwing.

I disagree, it's very useful even in languages that have exception throwing conventions. It's good enough for the return type for Promise.allSettled api.

The problem is when I don't have the result type I end up approximating it anyway through other ways. For a quick project I'd stick with exceptions but depending on my codebase I usually use the Go style ok, err tuple (it's usually clunkier in ts though) or a rust style result type ok err enum.




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

Search: