3 ms·
I'm getting the sense that not a lot of commenters are taking the time to read the contents before reacting to the title As evidenced by none of the discussion
by userbinator 9y ago
I'm getting the sense that not a lot of commenters are taking the time to read the contents before reacting to the title
As evidenced by none of the discussion hitherto noticing that your Python and Go examples actually perform a slightly different process? Was that deliberate? ;-)
(I rarely use Python and never Go; yet I noticed quite easily that the Python code is summing the selected odd elements, while the Go code is summing the selected even elements.)
- qb45 9y ago> As evidenced by none of the discussion hitherto noticing that your Python and Go examples actually perform a slightly different process? Was that deliberate? ;-) Good catch. I like abstract, declarative and structured code because if nothing else, it requires some level of engagement to write which has a side effect of reducing silly mistakes.
- shazow 9y agoGood catch indeed! Maybe I should keep it as-is for fun. :) Edit: I changed it.