Go iota

From NovaOrdis Knowledge Base
Revision as of 19:52, 13 September 2024 by Ovidiu (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

External

Internal

Overview

iota is referred to as an enumerator.

Go Enumerations


How Does the Compiler Assign Values to iota=

The compiler parses const() sequences, and each time it encounters a iota constant, it assigns it the zero-based index of the constant, as it appears in the const() sequence.