3 ms·
I wonder what Go would look like if it had generics removed but something like comptime added.
by pa7ch 2y ago
I wonder what Go would look like if it had generics removed but something like comptime added.
- fjasdddwsfasd 2y agoI always felt like if and when Go chose to implement Generics it would be like what Zig did today.
- deleted 2y ago[deleted]
- lenkite 2y agocomptime really should have been the approach to Generics taken by Golang instead of trying to blindly follow Java/C++ . It would have also fit into Go's philosophy of keeping it standard and simple - no separate mini language for generics . Wish the language designers had looked at Zig before rolling out generics.
- pjmlp 2y agoActually the way they were introduced, they are following up CLU from 1976!