Environment
is a concrete type: map[string]Variable[any]
.
Environment_g[V]
is a generic type: map[string]V
where V
implements Variable[any]
.
They are not the same — Environment
is fixed, while Environment_g
is more flexible and allows specifying different concrete types that satisfy the Variable[any]
interface.