(* Pascal in 1970 *)
Planet = (Unknown, Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune);
// C in 1989
enum Planet {Unknown, Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune};
Plus type system guarantees, and in Pascal's case, run time capabilities to query enum values and ranges.Go's hack has barely anything to do with that.