Skip to content

Commit

Permalink
_content/doc/go1.23: drop link to rangefunc wiki, add blog post
Browse files Browse the repository at this point in the history
The RangefuncExperiment wiki page has been updated to reflect the fact
that range-over-func is in 1.23, and the wiki page is no longer a good
destination for describing the change. Drop the link to it.
Add a link to the recent blog post.

Change-Id: I899f36f4172182b7089f4964e426530fd1865778
Reviewed-on: https://go-review.googlesource.com/c/website/+/608819
Reviewed-by: Dmitri Shuralyov <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
  • Loading branch information
ianlancetaylor authored and gopherbot committed Aug 27, 2024
1 parent f6ad650 commit 6f622f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _content/doc/go1.23.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ We expect almost all Go programs to continue to compile and run as before.
## Changes to the language {#language}

<!-- go.dev/issue/61405, CL 557835, CL 584596 -->
Go 1.23 makes the (Go 1.22) ["range-over-func" experiment](/wiki/RangefuncExperiment) a part of the language.
The "range" clause in a "for-range" loop now accepts iterator functions of the following types

func(func() bool)
Expand All @@ -32,7 +31,9 @@ The "range" clause in a "for-range" loop now accepts iterator functions of the f

as range expressions.
Calls of the iterator argument function produce the iteration values for the "for-range" loop.
For details see the [`iter`](/pkg/iter) package documentation and the [language spec](/ref/spec#For_range).
For details see the [`iter`](/pkg/iter) package documentation, the
[language spec](/ref/spec#For_range), and the [Range over Function
Types blog post](/blog/range-functions).
For motivation see the 2022 ["range-over-func" discussion](/issue/56413).

<!-- go.dev/issue/46477, CL 566856, CL 586955, CL 586956 -->
Expand Down

0 comments on commit 6f622f4

Please sign in to comment.