Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 ) 
like image 870
schemacs Avatar asked Jul 27 '15 10:07

schemacs


People also ask

What does iota stand for Golang?

Iota in Go is used to represent constant increasing sequences. When repeated in a constant, its value gets incremented after each specification.

What type is iota?

IOTA is a decentralized distributed ledger built specifically for the “Internet of Everything” – a unique type of network used for exchanging value and data between humans and computers.


1 Answers

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

  • as iterator in sums and algorithms
  • as subscript index
  • for imaginary part of complex numbers

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

like image 111
Alex Netkachov Avatar answered Oct 11 '22 10:10

Alex Netkachov