I believe the code is derived from a talk by Rob Pike on Lexers:

https://talks.golang.org/2011/lex.slide#1

On Mon, 3 May 2021, 14:58 Jesper Louis Andersen, <
jesper.louis.ander...@gmail.com> wrote:

> On Mon, May 3, 2021 at 6:43 PM Delta Echo <deltaecho...@gmail.com> wrote:
>
>>
>> Hi, Is there any document that explains how recursive type definitions
>> like
>>
>> type stateFn func(*Scanner) stateFn
>>
>> are handled in Go?
>>
>>
> Is this a type-level question (roughly boiling down to if the type is
> equi- or iso-recursive) or is it an implementation detail question?
>
>
> --
> J.
>
> --
> 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/CAGrdgiUhSohF5yrpdab--vskKQnLWukkZEcc2kZ_AzVAA4ppkQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/golang-nuts/CAGrdgiUhSohF5yrpdab--vskKQnLWukkZEcc2kZ_AzVAA4ppkQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAE%3DAWBU_Xrz17zm7e7ns2-2mJVV4hk2%2BOrbMV%2B9HD8poW%3D8Jsw%40mail.gmail.com.

Reply via email to