Re: [go-nuts] errors (langChange)

2022-04-14 Thread Matthias Mädel
} return nil err: defer os.Remove(dst) return fmt.Errorf("copy %s %s: %v", src, dst, err) } Matthias Mädel schrieb am Donnerstag, 14. April 2022 um 11:05:15 UTC+2: > some refining... > > func Experimental(src, dst string) error { > > //goto jumps to &qu

Re: [go-nuts] errors (langChange)

2022-04-14 Thread Matthias Mädel
return nil } Ian Lance Taylor schrieb am Donnerstag, 14. April 2022 um 00:04:22 UTC+2: > On Wed, Apr 13, 2022 at 2:44 PM Matthias Mädel > wrote: > > > > Please some advice if something like the following could be helpful and > if it is possible to implemen

[go-nuts] errors (langChange)

2022-04-13 Thread Matthias Mädel
Hello Please some advice if something like the following could be helpful and if it is possible to implement with the compiler. Thank You func Experimental(src, dst string) error { //goto is blocked with err == nil goto r, err := os.Open(src) defer r.Close() goto w, err := os.

Re: [go-nuts] Re: Generics and parentheses

2020-07-16 Thread Matthias Mädel
Just some considerations... Generics syntax is a constraint of the Parser Gen ops used with dB/ML/wire stuff... Encapsulating parantheses follow logic The type keyword shows the functionality square brackets introduce a, not only visual, distraction/confusion I can accept draft as is -- You