go yolo

from blog blog, | ↗ original
go yolo Green passenger traffic light in Munich. Taken while doing some street photography with flipez. tl;dr Go generics can be used to drop the error of two-return-value functions to enable chaining functions quickly: func Yolo[T any](value T, _ error) T { return value } func main(){ // Atoi has signature func(s string) (int, error) ...