Marvin Renich, "I would interpret the phrase," "I think the phrase," and "I prefer" are your personal interpretation, thoughts, and preference. Go prefers standard interpretations: US words, spelling, grammar, and dictionaries. For example,
Merriam-Webster Definition of preceding : existing, coming, or occurring immediately before in time or place // preceding paragraphs https://www.merriam-webster.com/dictionary/preceding The Go Programming Language Specification Constant declarations https://golang.org/ref/spec#Constant_declarations "Within a parenthesized const declaration list the expression list may be omitted from any but the first ConstSpec. Such an empty list is equivalent to the textual substitution of the first preceding non-empty expression list and its type if any. Omitting the list of expressions is therefore equivalent to repeating the previous list." Using the Merriam-Webster definition, the meaning seems reasonably clear. For standardization and clarity, I would prefer that 'first preceding' be "immediately preceding." Google Search immediately+preceding: About 6,000,000 results https://www.google.com/search?q="immediately+preceding" first+preceding: About 52,000 results https://www.google.com/search?q="first+preceding" Google Books Ngram Viewer immediately+preceding: 0.0000995521% https://books.google.com/ngrams/graph?content=immediately+preceding&year_start=1800&year_end=2000&corpus=15&smoothing=3&share=&direct_url=t1%3B%2Cimmediately%20preceding%3B%2Cc0 first+preceding: 0.0000004863% https://books.google.com/ngrams/graph?content=first+preceding&year_start=1800&year_end=2000&corpus=15&smoothing=3&share=&direct_url=t1%3B%2Cfirst%20preceding%3B%2Cc0 last+preceding: 0.0000041926% https://books.google.com/ngrams/graph?content=last+preceding&year_start=1800&year_end=2000&corpus=15&smoothing=3&share=&direct_url=t1%3B%2Clast%20preceding%3B%2Cc0#t1%3B%2Clast%20preceding%3B%2Cc0 most+recent+preceding: 0.0000001958% https://books.google.com/ngrams/graph?content=most+recent+preceding&year_start=1800&year_end=2000&corpus=15&smoothing=3&share=&direct_url=t1%3B%2Cmost%20recent%20preceding%3B%2Cc0 Peter On Monday, April 15, 2019 at 12:28:08 PM UTC-4, Marvin Renich wrote: > > At https://golang.org/ref/spec#Constant_declarations where it talks > about omitting the expression list, it says > > Such an empty list is equivalent to the textual substitution of the > first preceding non-empty expression list and its type if any. > > In the declaration > > const ( > One = iota > Two = 2 > Three > ) > > I would interpret the phrase "first preceding" in the spec as meaning "= > iota", when it is really means "= 2". Both "= iota" and "= 2" are > preceding non-empty expressions, and "= iota" is the first. I think the > phrase should be changed to "most recent preceding" or "last preceding" > (I prefer "most recent"). > > ...Marvin > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.