Hacker News new | ask | show | jobs
by mseepgood 847 days 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.

1 comments

Having an actual set type is much better than having to manually fiddle with bitwise operations.