Hacker News new | past | comments | ask | show | jobs | submit login

I would guess it is the `if err` lines and other such gofmt artifacts that expand the LOC. Go is higher-level, but it's not terse. It's deliberately pretty explicit. IMHO 100 lines of Go might well do the same as 100 lines of C, but the Go will be much more readable code.



That is easy to check, could the author put 100 lines of C code next to 100 lines of equivalent Go code and let us judge for ourselves?


If we judge for ourselves we will only be checking our opinion.

Could you provide a readability algorithm in some form of executable that we can run against the 100 lines of c and Go code — then we'll be able to judge correctly.


readability algorithm

Sure, it's next to the objective poetry quality metric.

"Shall I compare thee to a summer's day?"

> TYPE ERROR


Honestly, I just want to see them side by side. We can then debate our subjective interpretations vs. debating pure biases.





Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: