« BackPrep: Golang Comptimegithub.comSubmitted by Seb-C 2 days ago
  • andyferris 3 hours ago

    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.

    • Groxx an hour ago

      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.

      • pa7ch 2 hours ago

        I wonder what Go would look like if it had generics removed but something like comptime added.

        • fjasdddwsfasd an hour ago

          I always felt like if and when Go chose to implement Generics it would be like what Zig did today.