All Projects → golang-design → go2generics

golang-design / go2generics

Licence: BSD-2-Clause license
🧪 A chunk of experiments and demos about Go 2 generics design (type parameter & type set)

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to go2generics

Go generics
Templates, generics engine for Go
Stars: ✭ 141 (-3.42%)
Mutual labels:  generics
lancet
A comprehensive, efficient, and reusable util function library of go.
Stars: ✭ 2,228 (+1426.03%)
Mutual labels:  generics
parco
🏇🏻 generalist, fast and tiny binary parser and compiler generator, powered by Go 1.18+ Generics
Stars: ✭ 57 (-60.96%)
Mutual labels:  generics
Higgledy
Higher-kinded data via generics
Stars: ✭ 153 (+4.79%)
Mutual labels:  generics
Gengen
A Go source transformation tool for generics
Stars: ✭ 253 (+73.29%)
Mutual labels:  generics
rust-amplify
Amplifying Rust language capabilities: multiple generic trait implementations, type wrappers, bit-precise numerics, derive macros
Stars: ✭ 38 (-73.97%)
Mutual labels:  generics
Envy
😠 Environmentally friendly environment variables
Stars: ✭ 132 (-9.59%)
Mutual labels:  generics
ViewControllersFactory
Instantiate your ViewControllers easily with this small factory class
Stars: ✭ 26 (-82.19%)
Mutual labels:  generics
go-generics
Go的泛型文档、代码、讨论
Stars: ✭ 43 (-70.55%)
Mutual labels:  generics
Java-Programs
Java Practiced Problems including concepts of OOPS, Interface, String , Collection.
Stars: ✭ 51 (-65.07%)
Mutual labels:  generics
Syncmap
A typed implementation of the Go sync.Map using code generation
Stars: ✭ 200 (+36.99%)
Mutual labels:  generics
Arrow Meta
Functional companion to Kotlin's Compiler
Stars: ✭ 246 (+68.49%)
Mutual labels:  generics
async
Synchronization and asynchronous computation package for Go
Stars: ✭ 104 (-28.77%)
Mutual labels:  generics
Auth Adt
Authenticated Data Structures Generically
Stars: ✭ 150 (+2.74%)
Mutual labels:  generics
generics
Deprecated! See https://github.com/golang-design/go2generics.
Stars: ✭ 26 (-82.19%)
Mutual labels:  generics
Gomacro
Interactive Go interpreter and debugger with REPL, Eval, generics and Lisp-like macros
Stars: ✭ 1,784 (+1121.92%)
Mutual labels:  generics
go-ringbuf
Lock-free MPMC Ring Buffer (Generic) for SMP, in golang. Some posts in chinese:
Stars: ✭ 43 (-70.55%)
Mutual labels:  generics
heidi
heidi : tidy data in Haskell
Stars: ✭ 24 (-83.56%)
Mutual labels:  generics
truthy
Package truthy provides truthy condition testing with Go generics
Stars: ✭ 31 (-78.77%)
Mutual labels:  generics
Java-Interview-Programs
Core Java Projects with complete source code
Stars: ✭ 48 (-67.12%)
Mutual labels:  generics

go2generics

A chunk of demos for Go generics design (based on type parameters and type sets).

Standard Package

Package constraints

See the official implementation here.

Package slices

See the official implementation here.

Package maps

See the official implementation here.

Package container/set

This package is from the following discussions:

  • golang/go#47331 proposal: container/set: new package to provide a generic set type (discussion)

See a possible implementation here.

Others (under discussion)

Further Examples

See folders in this repository.

Known Issues

References

Here are some documents to get familiar with the spirit of generics:

Licnese

BSD-2-Clause

Copyright © 2020-2021 Changkun Ou

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].