Re: [go-nuts] Generic arguments in recursive functions

2022-04-10 Thread Aidan Hahn
ing the weird corner case, I am just wondering why f, unchanged, cannot be passed into a recursion of the function that it is an argument to. Thanks, Ava On Saturday, April 9, 2022 at 9:13:31 PM UTC-7 Ian Lance Taylor wrote: > On Sat, Apr 9, 2022 at 8:28 PM Aidan Hahn wrote: > > >

[go-nuts] Generic arguments in recursive functions

2022-04-09 Thread Aidan Hahn
Hello Go users! I am playing with the generics that were added in go 1.18 and noticed an odd discrepancy that I have not been able to find an authoritative answer to. Consider the following data type, as well as the function defined for it: type Node[T any] struct { Inner T Next

[go-nuts] Import a submodule from its parent package?

2020-12-27 Thread Aidan Hahn
Hello, I am writing a modification to the os package in which I would like to take advantage of code from the os/signal package. Ive written the patch (modified os/exec_posix.go) and as I expected none of the symbols from os/signal are defined in the os package. My question is how I can import

[go-nuts] Making syscalls in the syscall package

2020-11-17 Thread Aidan Hahn
Good Morning/Afternoon/Evening, I am currently patching my local go runtime to fix a bug it has. I would like to make the signal() syscall, or at least the sigaction() syscall from inside the syscall package but it looks like those functions are defined as private within the runtime package.