"...and I'm not really sure what 
you are looking for. C++ is a very complex language and does have 
many constructs that can be rewritten in simpler ways. Go is a much 
simpler language...."

Surely I say to Ian, if we have   `var i interface{int(10)}` there must be 
some code generated to turn the variable `i` into an `interFaceType` type 
and that must be a compiler generated go code, same goes to `var j []int` 
will change the `j` into a sliceStruct
that must be done by a compiler generated Go code. so these are insights we 
miss before the user code getting turned into assembly-code...... Did you 
now get what I am looking for, Ian?

On Monday, July 5, 2021 at 10:34:31 PM UTC+5:30 Ian Lance Taylor wrote:

> On Mon, Jul 5, 2021 at 12:59 AM FallingFromBed <falling...@gmail.com> 
> wrote:
> >
> > To give an example, for C++ we have https://cppinsights.io/ and I am 
> not asking for any web based tools as such.... Any native cmd (go tool) 
> available to achieve what I am looking for? Thanks.
>
> I'm not aware of any such tools for Go, and I'm not really sure what
> you are looking for. C++ is a very complex language and does have
> many constructs that can be rewritten in simpler ways. Go is a much
> simpler language. At first glance the only Go construct that can be
> rewritten is the three-element for statement, and the code that it
> gets rewritten into is only slightly simpler.
>
> 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/39cd7fa3-01f3-4fff-ae09-81fe0441605bn%40googlegroups.com.

Reply via email to