* liyu1...@gmail.com <liyu1...@gmail.com> [161109 08:26]: > I don`t know how to speak 'iota' too,I have to say "i---o---t---a" when I > talk with somebody. > > 在 2013年4月28日星期日 UTC+8上午8:52:36,mb0写道: > > > > > Wikipedia says it's a greek alphabet that looks like i, and I am seeing > > > APL used iota for something like range() in python, which makes > > > go-lang's use of iota a bit different from that in APL. > > > > > > iota sounds cool, and I like it, but I wonder if that coolness was the > > > primary reason behind the name of an important language construct, or > > > there are some relevant legacy behind the character. > > > > from http://en.wiktionary.org/wiki/iota#Noun > > ... 2. A jot; a very small, inconsiderable quantity. > > > > hope that helps to clarifies it
Speaking as a former APL language implementer, I think the Go use of iota is very much in line with the APL definition: it produces successive integers. APL, being an array oriented language, produces them all at once, but the basic idea is the same. In APL, ⍳7 produces the vector (one-dimensional array) 1 2 3 4 5 6 7. Iota is pronounced eye-OH-tuh. ...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.