5 ms·
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 expl
by Lewisham 12y ago
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.
- seanmcdirmid 12y agoThat 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?
- sambeau 12y agoIf 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.
- seanmcdirmid 12y agoHonestly, I just want to see them side by side. We can then debate our subjective interpretations vs. debating pure biases.
- 4ad 12y agoA random list of CLs that dealt with conversions. https://codereview.appspot.com/99380043 https://codereview.appspot.com/99380043 https://codereview.appspot.com/140050044 https://codereview.appspot.com/140050044 https://codereview.appspot.com/136980044 https://codereview.appspot.com/136980044 https://codereview.appspot.com/139930044 https://codereview.appspot.com/139930044 https://codereview.appspot.com/139930043 https://codereview.appspot.com/139930043 https://codereview.appspot.com/135070043 https://codereview.appspot.com/135070043 https://codereview.appspot.com/123700044 https://codereview.appspot.com/123700044 https://codereview.appspot.com/126210046 https://codereview.appspot.com/126210046 https://codereview.appspot.com/130340043 https://codereview.appspot.com/130340043 https://codereview.appspot.com/125610043 https://codereview.appspot.com/125610043 https://codereview.appspot.com/98510044 https://codereview.appspot.com/98510044
- pjc50 12y agoreadability algorithm Sure, it's next to the objective poetry quality metric. "Shall I compare thee to a summer's day?" > TYPE ERROR