News for hackers. Stuff that matters.
Re:Go 1.27 Interactive Tour by phplovesong on Sunday August 02, 2026 @04:02AM (#49142155)
Im pretty sure it came from the MLs, where you usually have a/b/c instrad of the T,U etc combo.

I dont find it confusing, as its pretty clear that it only an placeholder.

In generics the name usually does not matter or is REALLY hard to name so that it makes sense.

More specifically in Go where you have interfaces, concrete types and generics.

Re:Go 1.27 Interactive Tour by asQuirreL on Sunday August 02, 2026 @04:36AM (#49142359)
Fairly sure it would predate even that, and go all the way to lambda calculus, and predicate logic before that, and that's where my knowledge stops and somebody else can tell us where the current conventions around variables in logic and mathematics come from.
Re:Go 1.27 Interactive Tour by teh64 on Sunday August 02, 2026 @06:37AM (#49143120)
In ocaml (and I assume SML) it helps that the generic types have a `'` before them, so

    val map : ('a Box) -> ('a -> 'b) -> 'b Box