Re: [go-nuts] Underscore symbol

2022-11-05 Thread David Finkel
On Sat, Nov 5, 2022 at 4:57 AM Chris Burkert wrote: > I am curious: from a compiler perspective, does that mean that by using _ > simply less assembler instructions are created by not handling those > registers which relate to _? > > That kind of depends on what you mean by "not handling". Since

Re: [go-nuts] Underscore symbol

2022-11-05 Thread Chris Burkert
I am curious: from a compiler perspective, does that mean that by using _ simply less assembler instructions are created by not handling those registers which relate to _? Marcel Huijkman schrieb am Sa. 5. Nov. 2022 um 09:18: > When I explain it during my training I always say it is a trashcan

Re: [go-nuts] Underscore symbol

2022-11-05 Thread Marcel Huijkman
When I explain it during my training I always say it is a trashcan variable, anything you put in is to be ignored on the spot. On Friday, November 4, 2022 at 10:10:20 PM UTC+1 Konstantin Khomoutov wrote: > On Fri, Nov 04, 2022 at 04:58:35AM -0700, Canuto wrote: > > > I'm just starting out with

Re: [go-nuts] Underscore symbol

2022-11-04 Thread Konstantin Khomoutov
On Fri, Nov 04, 2022 at 04:58:35AM -0700, Canuto wrote: > I'm just starting out with go ... > I have searched for lights on this string but without success. > What does this sign mean " _, err " , what the underscore symbol means here? > If you're starting with Go, please

Re: [go-nuts] Underscore symbol

2022-11-04 Thread Francesco Bottoni
Means: "just ignore the result at the _ position" On Fri, Nov 4, 2022, 19:02 Jan Mercl <0xj...@gmail.com> wrote: > On Fri, Nov 4, 2022 at 6:54 PM Canuto wrote: > > > I'm just starting out with go ... > > I have searched for lights on this string but without success. > > What does this sign

Re: [go-nuts] Underscore symbol

2022-11-04 Thread Jan Mercl
On Fri, Nov 4, 2022 at 6:54 PM Canuto wrote: > I'm just starting out with go ... > I have searched for lights on this string but without success. > What does this sign mean " _, err " , what the underscore symbol means here ? > > func generateSalt() string { > randomBytes := make([]byte, 16) >

[go-nuts] Underscore symbol

2022-11-04 Thread Canuto
Hello everybody, I'm just starting out with go ... I have searched for lights on this string but without success. What does this sign mean " _, err " , what the underscore symbol means here ? func generateSalt() string { randomBytes := make([]byte, 16)