sassa_nf ([personal profile] sassa_nf) wrote2024-06-19 05:21 pm

A language for not clever people

http://go.dev/ref/mem#advice
Don't be clever.

Who do they think they are?
juan_gandhi: (Default)

[personal profile] juan_gandhi 2024-06-22 11:44 am (UTC)(link)

Oh, then yes, between Python and Go, for production I'd definitely choose Go.

[personal profile] aklepatc 2024-06-23 01:47 am (UTC)(link)
BTW if memory serves, Python closures are not "honest".

Specifically, you can read anything from the outer/enclosing scope but you cannot write to it unless you "cast some magic spell" (local or global keyword, I forgot).