2 ms·
> Go's iota is probably one of the worst ideas in all programming languages. iota is a great idea, especially if you have to define bit mask constants, e.g. 1
by mseepgood 3y ago
> Go's iota is probably one of the worst ideas in all programming languages.
iota is a great idea, especially if you have to define bit mask constants, e.g. 1 << iota. I wish other languages (yes, also those with enums) had it as well.
- xigoi 3y agoHaving an actual set type is much better than having to manually fiddle with bitwise operations.