Re: [go-nuts] Re: new range over int docs?

2024-02-07 Thread Robert Griesemer
On Wed, Feb 7, 2024 at 9:58 AM Jason E. Aten wrote: > Thanks Robert. Succeess: I see the latest go1.22 spec now on > https://go.dev/ref/spec > > Minor nit: As Rob pointed out, the year in the sub-title is off by one. > (It says Jan 30, 2023, while almost surely the author of the update meant >

Re: [go-nuts] Re: new range over int docs?

2024-02-07 Thread Jason E. Aten
Thanks Robert. Succeess: I see the latest go1.22 spec now on https://go.dev/ref/spec Minor nit: As Rob pointed out, the year in the sub-title is off by one. (It says Jan 30, 2023, while almost surely the author of the update meant Jan 30, 2024). "The Go Programming Language Specification

Re: [go-nuts] Re: new range over int docs?

2024-02-07 Thread Robert Griesemer
Spec is up-to-date at tip, now: https://tip.golang.org/ref/spec https://golang.org/ref/spec should be updated soon, too. Apologies for the confusion. - gri On Wed, Feb 7, 2024 at 8:11 AM Jason E. Aten wrote: > Thanks Peter. I see the latest spec at tip.golang.org. > > p.s. Go Team: At least in

Re: [go-nuts] Re: new range over int docs?

2024-02-07 Thread Jason E. Aten
Thanks Peter. I see the latest spec at tip.golang.org. p.s. Go Team: At least in the UK, the page served from https://go.dev/ref/spec does not, at the moment, match that of https://tip.golang.org/ref/spec , so somebody may need to do an update (if not of origin server, maybe of CDN caches?)

Re: [go-nuts] Re: new range over int docs?

2024-02-07 Thread peterGo
Jason, File an issue with the Go release team to clean up the mess. Peter On Wednesday, February 7, 2024 at 7:12:08 AM UTC-5 Brian Candler wrote: > But the main point is, the canonical version published at > https://go.dev/ref/spec is still from Aug 2, 2023 > > On Wednesday 7 February 2024 at

Re: [go-nuts] Re: new range over int docs?

2024-02-07 Thread 'Brian Candler' via golang-nuts
But the main point is, the canonical version published at https://go.dev/ref/spec is still from Aug 2, 2023 On Wednesday 7 February 2024 at 12:02:28 UTC Rob Pike wrote: > Ha ha, someone forgot to change the year. It should read Jan 30, 2024. > > That's confusing. > > -rob > > > On Wed, Feb 7,

Re: [go-nuts] Re: new range over int docs?

2024-02-07 Thread Rob Pike
Ha ha, someone forgot to change the year. It should read Jan 30, 2024. That's confusing. -rob On Wed, Feb 7, 2024 at 8:47 PM peterGo wrote: > Jason, > > The Go 1.22 source code says: > > "Subtitle": "Language version go1.22 (Jan 30, 2023)", > > Blame > > #569 9289b9c gri@*.***

Re: [go-nuts] Re: new range over int docs?

2024-02-07 Thread peterGo
Jason, The Go 1.22 source code says: "Subtitle": "Language version go1.22 (Jan 30, 2023)", Blame #569 9289b9c gri@*.*** 2024-01-31 16:40 [release-branch.go1.22] spec: clarify iteration variable type for range over integer Change-Id: I4f1d220d5922c40a36264df2d0a7bb7cd0756bac

Re: [go-nuts] Re: new range over int docs?

2024-02-06 Thread Jason E. Aten
On Wed, Feb 7, 2024 at 3:34 AM peterGo wrote: > You are reading a specification dated Version of Aug 2, 2023. The current > specification for Go 1.22 is dated as Modified Tue 06 Feb 2024 10:08:15 PM > EST. > Link? https://go.dev/ref/spec still gives me the Aug 2, 2023 spec, which is what the

[go-nuts] Re: new range over int docs?

2024-02-06 Thread peterGo
Jason, The Go specification "Length and capacity" section defines the len built-in function. Peter On Tuesday, February 6, 2024 at 11:36:21 PM UTC-5 peterGo wrote: > Jason, > > The Go 1.22 specification, in part, > > For statements with range clause > > A "for" statement with a "range" clause

[go-nuts] Re: new range over int docs?

2024-02-06 Thread peterGo
Jason, The Go 1.22 specification, in part, For statements with range clause A "for" statement with a "range" clause iterates through all entries of an array, slice, string or map, values received on a channel, or integer values from zero to an upper limit [Go 1.22]. For an integer value n,

[go-nuts] Re: new range over int docs?

2024-02-06 Thread peterGo
Jason, The Go Programming Language Specification is reference documentation. It is intended to be read very carefully in its entirety. You are reading a specification dated Version of Aug 2, 2023. The current specification for Go 1.22 is dated as Modified Tue 06 Feb 2024 10:08:15 PM EST. The