Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Things I Wish Someone Had Told Me About Go. Parent comment
If you want to cause side effects in a function, you have to dereference something. (or call another evil function)
The only exception being dot operators, which implicitly dereference their left hand argument.
(&x).whatever() == x.whatever()
There are no comments on this comment yet.
If you want to cause side effects in a function, you have to dereference something. (or call another evil function)
The only exception being dot operators, which implicitly dereference their left hand argument.
I wish go had used arrow notation now. Explicitly marking side effects is a good thing.