Writing powers of 10 as constants compactly
问题 I'm reading the recently released The Go Programming Language, and it's been a joy so far (with Brian Kernighan being one of the authors, I wouldn't expect anything other than excellence anyway). I've came across the following exercise on chapter 3: Exercise 3.13 Write const declarations for KB, MB, up through YB as compactly as you can. ( NOTE : in this context, KB, MB, etc, denote powers of 1000) This is preceded by a section where iota is introduced as a useful constants generator