Re: [go-nuts] Re: go/types with typedef-of-typedef?

2024-07-27 Thread 'Tim Hockin' via golang-nuts
How do you make the jump from a go/type.TypeName to ast Decl? Is there some easy crosslink? On Fri, Jul 26, 2024, 4:24 PM Jason E. Aten wrote: > To be more specific, > > ast.TypeSpec.Name.Name is, I think, what you are after. > > See https://pkg.go.dev/go/ast#TypeSpec > > And the TypeSpec are f

Re: [go-nuts] Why no signed conversions in binary.ByteOrder?

2024-07-27 Thread 'wagner riffel' via golang-nuts
a2800276 wrote: > Just out of curiosity, does anyone have a good rationale as to why there > are only unsigned conversions available `binary.ByteOrder`? It would seem > that this functionality is there to avoid dumb careless errors doing byte > order conversions, but this design forces me to ha

[go-nuts] Why no signed conversions in binary.ByteOrder?

2024-07-27 Thread a2800276
Just out of curiosity, does anyone have a good rationale as to why there are only unsigned conversions available `binary.ByteOrder`? It would seem that this functionality is there to avoid dumb careless errors doing byte order conversions, but this design forces me to have to think about whether