Getting going
This section builds on Getting started and explores basic concepts such as:
var t T
: declaring a new instance ofT
withvar
new(T)
: declaring a new instance ofT
withnew
- Structs: structs and generics
- Structural constraints: expressing constraints with structs
- Interface constraints: composite constraints that include interfaces
- Careful constructors: when struct vs. interface constraint really matters