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

>The whole point of using Go is to explicitly handle errors as they happen

That's hardly the whole point of using Go.

The friendlier syntax (and in this case DSL) is an ever bigger point.

In any case, you can trivially get at the error at the point it occured:

n, err := script.File("test.txt").Match("Error").CountLines()



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

Search: