Cleaned and cleared.

https://github.com/ohir/gonerics

Current state of CGG (TL;DR)

    * no new keywords. Only ones known to Go1.
    * contract uses already known Go type definitions and casts.
    * only one new syntax construct for user, and three for generic code
        - x.pkg.Method() generic method call via package selector
        - (x type T) declarations — as in team's proposal
        - for type contract; tied to the package or func
        - for type switch that can further specialise code on matched type

Added point about generic types (data) in form of:

type TypeName struct {
    for type (
        T constraint
    )
    SomeField T
}

Added point about conversions.

Enjoy,

-- 
Wojciech S. Czarnecki
 << ^oo^ >> OHIR-RIPE

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to