|
|
Subscribe / Log in / New account

Generics for Go

Generics for Go

Posted Jul 2, 2020 9:32 UTC (Thu) by ragnar (guest, #139237)
Parent article: Generics for Go

I really like the approach zig has taken with generics. They simply have types as compile-time parameters to functions and data structures.

https://ziglang.org/#Generic-data-structures-and-functions


to post comments

Generics for Go

Posted Jul 4, 2020 8:19 UTC (Sat) by cpitrat (subscriber, #116459) [Link]

IIUC, this is conceptually like the C++ approach but with a nicer syntax (same as the language rather than a dedicated one). AmI missing something?


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds