I am certain that Generics are not supported in Go (not even in Go 2.0), and as mentioned in the summary, I'm okay with that.
However, the feature that we'd benefit most greatly from, if Go had it, is Tail Call Optimization (TCO).
I am certain that Generics are not supported in Go (not even in Go 2.0), and as mentioned in the summary, I'm okay with that.
However, the feature that we'd benefit most greatly from, if Go had it, is Tail Call Optimization (TCO).
Is it possible that Go already supports TCO? Time to find out.
First, I looked at the Go language specification for any mention of a TCO feature (https://golang.org/ref/spec).
I found nothing about TCO.
Next, I did the requisite Google search, ...