Follow

Somehow hit a bug in the go compiler.

Fixed by:

```
v1, v2 := fn()
return v1, v2
```

instead of

```
return fn()
```

Β· Web Β· 3 Β· 0 Β· 1

@21stio No idea. The affected line is here:

github.com/go-fed/activity/blo

I don't remember what version of go I am using off the top of my head, but should be latest stable.

@cj
I spent 20 minutes Saturday debugging a thing in Lua where I needed parentheses because I was returning 2 values

Just saying 😎

@cj This looks less like a bug and more like the typical kind of annoyance that happens when a language supports multiple return values that are supported by syntax and calling conventions but not actually a data structure.
Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!

We adhere to an adapted version of the TootCat Code of Conduct and follow the Toot CafΓ© list of blocked instances. Ash is the admin and is supported by Fuzzface, Brian!, and Daniel Glus as moderators.

Hosting costs are largely covered by our generous supporters on Patreon – thanks for all the help!