On Wednesday, July 29, 2020 at 7:23:22 PM UTC+10, mb0 wrote:
>
> This is a special kind of switch called a type switch. You can read more 
> about it in the language specification where its part of the intrinsic 
> go syntax. https://golang.org/ref/spec#Switch_statements 
>
> Because it is a special language construct you need to look at the 
> compiler. You probably want to check out the default gc compiler and may 
> start your journey here: 
>
> https://github.com/golang/go/blob/master/src/cmd/compile/internal/gc/swt.go#L617
>  
>
> This is really helpful, thanks.

The two questions I am left with are:
How do I recognise that something is a "special language construct"; is it 
simply a matter of, I cannot ctrl-] to it directly, so I need to grep?


And, just as importantly, how do I find out what I need to grep /for/

Regards
 

-- 
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/5d2cfcd6-579a-4846-8c33-0aa763a9efd9o%40googlegroups.com.

Reply via email to