Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"go run" was a great way to run go code as scripts. But maybe it is not now. Why? because Go 1.22 introduced a change that breaks backwards compatibility (changing the semantics of "for;;" loops). Without language version specified (such as in go.mod files), the change will often cause unintended damage.


It's quite rare to find any Go repos without go.mod nowadays. So what's the problem again?


Most Go scripts are not public.

But anyway, just being rare, so deserves to be ignored?




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

Search: