Better HN
topnewbestaskshowjobs
Log inSign up

ipmonkey

1 karma · joined Oct 31, 2021 (5y ago) · 2 submissions

Submissions

comment 5y ago · link · parent

Early return is definitely a part of the problem. One thing you could do with generics is create option/result wrappers that would work with any code and hack together a try/early return solution using panic/recover, but you'd offend the Go community, and at that point you might as well just use Rust.

comment 5y ago · link · parent

vim user here. Most of us are running the same linters and language servers as every other major editor, which does a pretty good job catching stuff like this. Modern vim is really only a C core with a web of JS, Python, Lua, and vimscript using the exact same third party solutions for every other part of an "IDE". emacs is probably similar, but no personal experience with that.