Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reflect.Value methods Seq and Seq2 missing #4487

Open
jmillikin opened this issue Oct 2, 2024 · 1 comment
Open

reflect.Value methods Seq and Seq2 missing #4487

jmillikin opened this issue Oct 2, 2024 · 1 comment

Comments

@jmillikin
Copy link

These two methods are new in Go 1.23 as part of the new iterators feature:

% cat main.go 
package main

import "reflect"

func main() {
	var v reflect.Value
	_ = v.Seq
	_ = v.Seq2
}
% go build -o main
% tinygo build -o main
# example.com/example
main.go:7:8: v.Seq undefined (type reflect.Value has no field or method Seq)
main.go:8:8: v.Seq2 undefined (type reflect.Value has no field or method Seq2)
@dgryski
Copy link
Member

dgryski commented Oct 2, 2024

Implementing this means pulling in https://github.com/golang/go/blob/master/src/reflect/iter.go and https://github.com/golang/go/tree/master/src/iter

(Edit: which due to import cycles probably means properly splitting out bits of reflect into a internal/reflectlite.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants