Hi, In file cycles.src <https://github.com/golang/go/blob/master/src/cmd/compile/internal/types2/testdata/cycles.src> there're many type declarations to demo cycle reference, some are invalid and some are valid, I can understand why invalid ones are invalid, but for some of the valid ones, I cannot figure out their usage scenarios, take some as examples:
type T *T // Does nil the only value a type T variable/const can hold? or with bigger cycle: type ( // The same with above T for all T1, T2 and T3? T1 T2 T2 *T3 T3 T1 ) or function type decl like: F func(F) F I'm wondering whether type decls like this do have practical usage, or just for grammar learning? Thanks a lot. -- 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/2711edc7-e8d3-442f-b1ae-942daf134d71n%40googlegroups.com.