What's the full name for `iota` in golang?

schemacs picture schemacs · Jul 27, 2015 · Viewed 7.7k times · Source

As title, what's the full name for iota (not the usage) in golang:

const (  // iota is reset to 0
    c0 = iota  // c0 == 0
    c1 = iota  // c1 == 1
    c2 = iota  // c2 == 2
)

Answer

Alex Netkachov picture Alex Netkachov · Jul 27, 2015

That's the full name by itself. "iota" is the letter of the Greek alphabet. It is typical for the math notations:

You can find it in other programming languages as well (see iota in Scheme).