David Atkins
Aug 1, 2022

That's a great point! In fact we can simply replace `bool` with `*struct{}` in all our examples here and we can build all our enums using `struct{}` as a base type.

I hope you don't mind but I've credited you for this suggestion in a small addendum at the end of the article.

David Atkins
David Atkins

Written by David Atkins

EdTech Software Engineer / Shanghai Expat / Cambridge University Graduate

No responses yet