iter-2014

command
v0.0.0-...-97ebcb8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2023 License: Apache-2.0, BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

An example package using Go-as-if-it-had-parametric-polymorphism, with an "iter" package in the standard library, following an already idiomatic Go iteration pattern.

The feature is entirely imaginary, but I've tried to write the code to fit as much within Go's existing idioms as possible.

Generics questions that this code does not attempt to resolve:

  • What semantics are there for equality of values with parametric types?
  • what happens if you convert a value with parametric type to an interface?

Points given for pointing out syntax errors, logical inconsistencies or language-feature implementation roadtraps.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL