41 points | by Seb-C 2 days ago ago
4 comments
TIL `go build -toolexec`. That... seems like it'd enable a lot of interesting shenanigans...
I'm somewhat surprised by how little I see online about it.
The cool thing that zig comptime does is that it interacts with the type system. This seems geared around computations, more than e.g. defining structs.
I wonder what Go would look like if it had generics removed but something like comptime added.
I always felt like if and when Go chose to implement Generics it would be like what Zig did today.
TIL `go build -toolexec`. That... seems like it'd enable a lot of interesting shenanigans...
I'm somewhat surprised by how little I see online about it.
The cool thing that zig comptime does is that it interacts with the type system. This seems geared around computations, more than e.g. defining structs.
I wonder what Go would look like if it had generics removed but something like comptime added.
I always felt like if and when Go chose to implement Generics it would be like what Zig did today.