On Mon, May 13, 2019 at 1:01 PM <pierre.cu...@gmail.com> wrote:
>
> While studying the go/ast package, I stumbled upon the following: 
> https://golang.org/src/go/ast/filter.go#L140
>
> Unless I am missing something, shouldnt this just be: 
> https://play.golang.org/p/uQJ3XtEcgWE ?

The filterType function is not a pure predicate: it can set
t.Incomplete.  So filterParamList has to call it on every element in
the list, it can't return early.

Ian

-- 
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/CAOyqgcWcsr_9Zz2TTgih%3D63BnSNKaZDRYfTPsRTEBfmoQNUH_A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to