There was some discussion on the GitHub issue(s) that the trailing outer 
bool is perhaps not adding much in actual usage, shortly after the 
experiment document. Signatures changed to drop the outer bool, and 
appearances in docs are vestigial.

Of the trailing inner, outer booleans: The inner bool is the one associated 
with per-step iteration logic, signaling whether anything is coming out or 
not. The outer bool says ... something? ... about the state of the 
iteration w/o respect to steps. My sense is that it's less clear what the 
outer bool meant. Notably, when putting the iterating function in for/range 
syntax it's not always clear from obvious principles where the return gets 
checked, and for various kinds of fallible iterators it's not clear that 
there's a uniform way to expose different underlying logic about what it 
means or what to do if the outer bool returned 'false'.

On Sunday, December 24, 2023 at 8:44:51 AM UTC-8 John David Lee wrote:

> This is in the section titled "Why are yield functions limited to at most 
> two arguments?"
>
> On Sunday, December 24, 2023 at 5:43:23 PM UTC+1 John David Lee wrote:
>
>> Hello.
>>
>> In the rangefunc experiment document 
>> <https://go.dev/wiki/RangefuncExperiment> the iter package is said to 
>> export the following:
>>
>> type Seq[V any] func(yield func(V) bool) bool 
>> type Seq2[K, V any] func(yield func(K, V) bool) bool
>>
>> But after installing tip, it looks like the iter package exposes a 
>> slightly different interface: 
>>
>> type Seq[V any] func(yield func(V) bool)
>> type Seq2[K, V any] func(yield func(K, V) bool)
>>
>> Take care,
>>
>> David
>> On Wednesday, December 20, 2023 at 12:43:36 AM UTC+1 anno...@golang.org 
>> wrote:
>>
>>> Hello gophers,
>>>
>>> We have just released go1.22rc1, a release candidate version of Go 1.22.
>>> It is cut from release-branch.go1.22 at the revision tagged go1.22rc1.
>>>
>>> Please try your production load tests and unit tests with the new 
>>> version.
>>> Your help testing these pre-release versions is invaluable.
>>>
>>> Report any problems using the issue tracker:
>>> https://go.dev/issue/new
>>>
>>> If you have Go installed already, an easy way to try go1.22rc1
>>> is by using the go command:
>>> $ go install golang.org/dl/go1.22rc1@latest
>>> $ go1.22rc1 download
>>>
>>> You can download binary and source distributions from the usual place:
>>> https://go.dev/dl/#go1.22rc1
>>>
>>> To find out what has changed in Go 1.22, read the draft release notes:
>>> https://tip.golang.org/doc/go1.22
>>>
>>> Cheers,
>>> Than and Carlos for the Go team
>>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c91c38ba-f322-4183-abe6-3d3e69bce09fn%40googlegroups.com.

Reply via email to