@cstanhope Interesting, I didn't know that about Pascal!
Go does make returning an accumulator a little more concise. Compare with e.g. Python:
def foo():
res = [] # not needed in Go
for x in y:
if z:
res.append(x)
return res
That's the biggest advantage I can see though.
miniblog.
Related Posts
@cstanhope In theory it's not giving them much more data: I already have to give the company meter readings.
https://www.telegraph.co.uk/money/consumer-affairs/six-reasons-say-no-smart-meter/ and https://www.the-ambient.com/explainers/smart-meters-2020-uk-guide-explainer-2153/ persuaded me against getting a smart meter though. The former link suggests I won't save money or escape confusing bills, and the latter suggests the early standards haven't won.
It'll probably win eventually, for better or worse.
@rocx @cstanhope A great example where the full page is being used to show more content!
Examples from other languages:
PHP: http://php.net/manual/en/function.count.php
Clojure (unofficial): https://clojuredocs.org/clojure.core/count
C++ (admittedly this has two functions):
@cstanhope I wondered the same thing!
Was he constrained by computer power at the beginning? Did he set out to spend three years typing, or was he just fascinated by the results each day?
I don't know the answers, sadly.


